plugins XEP-0045, XEP-0249, parrot: use JID instead of unicode in many methods + class attributes

This commit is contained in:
souliane 2015-03-11 12:35:21 +01:00
commit d9cc2f181e
3 changed files with 58 additions and 56 deletions

View file

@ -91,7 +91,7 @@ class Exp_Parrot(object):
entity_type = "contact"
if entity_type == 'chatroom':
src_txt = from_jid.resource
if src_txt == self.host.plugins["XEP-0045"].getRoomNick(from_jid.userhost(), profile):
if src_txt == self.host.plugins["XEP-0045"].getRoomNick(from_jid.userhostJID(), profile):
#we won't repeat our own messages
return True
else: