summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-06-23 02:29:34 +0200
committerFlorent Le Coz <louiz@louiz.org>2011-06-23 02:29:34 +0200
commit4e04c0bb7b4630e80829a621f01c3fd192331564 (patch)
treef073bea8e54f9268842aa30bbc9fa269221b3349 /src
parentf25013f540319eedba7852284e0ef8c701e9aff2 (diff)
downloadpoezio-4e04c0bb7b4630e80829a621f01c3fd192331564.tar.gz
poezio-4e04c0bb7b4630e80829a621f01c3fd192331564.tar.bz2
poezio-4e04c0bb7b4630e80829a621f01c3fd192331564.tar.xz
poezio-4e04c0bb7b4630e80829a621f01c3fd192331564.zip
Fix receipt of private message. They were seen as comig from the room.
Diffstat (limited to 'src')
-rw-r--r--src/core.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core.py b/src/core.py
index 66fbe5bb..df3cf0d8 100644
--- a/src/core.py
+++ b/src/core.py
@@ -486,12 +486,11 @@ class Core(object):
# Differentiate both type of messages, and call the appropriate handler.
jid_from = message['from']
for tab in self.tabs:
- if tab.get_name() == jid_from and isinstance(tab, tabs.PrivateTab):
+ if tab.get_name() == jid_from.bare and isinstance(tab, tabs.MucTab):
if message['type'] == 'error':
return self.room_error(message, jid_from)
else:
return self.on_groupchat_private_message(message)
-
return self.on_normal_message(message)
def on_groupchat_private_message(self, message):