diff src/plugins/plugin_exp_parrot.py @ 1358:bf3f669a6052 frontends_multi_profiles

plugins XEP-0045, XEP-0249, parrot: use JID instead of unicode in many methods + class attributes
author souliane <souliane@mailoo.org>
date Wed, 11 Mar 2015 12:35:21 +0100
parents 301b342c697a
children 0befb14ecf62
line wrap: on
line diff
--- a/src/plugins/plugin_exp_parrot.py	Mon Mar 09 16:37:15 2015 +0100
+++ b/src/plugins/plugin_exp_parrot.py	Wed Mar 11 12:35:21 2015 +0100
@@ -91,7 +91,7 @@
                     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: