plugins XEP-0045, XEP-0249, parrot: use JID instead of unicode in many methods + class attributes
This commit is contained in:
parent
2a7bf77142
commit
d9cc2f181e
3 changed files with 58 additions and 56 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue