From 39c01fe3b6c85b6edb1bd416d7448aa8a2010210 Mon Sep 17 00:00:00 2001 From: mathieui Date: Thu, 16 Apr 2015 14:05:33 +0200 Subject: [PATCH] Fix MUC private messages (bug introduced in 1c9257) --- src/core/handlers.py | 5 +++++ 1 file changed, 5 insertions(+) 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):