diff options
author | mathieui <mathieui@mathieui.net> | 2015-04-16 14:05:33 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2015-04-16 14:06:00 +0200 |
commit | 39c01fe3b6c85b6edb1bd416d7448aa8a2010210 (patch) | |
tree | eb6118df5e7c177f183aa96cfefda9ba95caf1db /src/core | |
parent | e78ed92ba36829b89007fe390e8b19b2b59514e3 (diff) | |
download | poezio-39c01fe3b6c85b6edb1bd416d7448aa8a2010210.tar.gz poezio-39c01fe3b6c85b6edb1bd416d7448aa8a2010210.tar.bz2 poezio-39c01fe3b6c85b6edb1bd416d7448aa8a2010210.tar.xz poezio-39c01fe3b6c85b6edb1bd416d7448aa8a2010210.zip |
Fix MUC private messages
(bug introduced in 1c9257)
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/handlers.py | 5 |
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): |