summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-12-17 14:47:18 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-12-17 14:47:18 +0000
commitc7515605a73e984818d76eebb57c99d7fcaffbe6 (patch)
treeabaffc2ac8f3ad3bdfdf4022109d3f49ba51513e /src
parent80a1fac0feed4af924ec5f4d22a4e72ef52ebead (diff)
downloadpoezio-c7515605a73e984818d76eebb57c99d7fcaffbe6.tar.gz
poezio-c7515605a73e984818d76eebb57c99d7fcaffbe6.tar.bz2
poezio-c7515605a73e984818d76eebb57c99d7fcaffbe6.tar.xz
poezio-c7515605a73e984818d76eebb57c99d7fcaffbe6.zip
correctly differentiate private and normal messages
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 833f2848..eab885c7 100644
--- a/src/core.py
+++ b/src/core.py
@@ -427,7 +427,7 @@ 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.bare:
+ if tab.get_name() == jid_from.bare and isinstance(tab, tabs.MucTab):
if message['type'] == 'error':
return self.room_error(message, tab.get_room().name)
else:
@@ -479,7 +479,6 @@ class Core(object):
if self.current_tab() is not conversation:
conversation.set_color_state(theme.COLOR_TAB_PRIVATE)
self.refresh_window()
- return
def on_presence(self, presence):
"""