summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/handlers.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/handlers.py b/src/core/handlers.py
index d6bb15c1..16bc2a7d 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -224,6 +224,11 @@ def on_message(self, message):
if message['type'] == 'groupchat':
return
# Differentiate both type of messages, and call the appropriate handler.
+ jid_from = message['from']
+ for tab in self.get_tabs(tabs.MucTab):
+ if tab.name == jid_from.bare:
+ if message['type'] == 'chat':
+ return self.on_groupchat_private_message(message)
return self.on_normal_message(message)
def on_error_message(self, message):