summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-07-28 14:57:48 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-07-28 14:58:26 +0200
commitfccf7f5af7a6a62ffb15cd7f37a23d52d0bbaf0d (patch)
tree5696d6221f456993be31129eaa25eaede0646d4e
parent2275b61a4dadfa84dc1399a97908f8dc7c22d07b (diff)
downloadpoezio-fccf7f5af7a6a62ffb15cd7f37a23d52d0bbaf0d.tar.gz
poezio-fccf7f5af7a6a62ffb15cd7f37a23d52d0bbaf0d.tar.bz2
poezio-fccf7f5af7a6a62ffb15cd7f37a23d52d0bbaf0d.tar.xz
poezio-fccf7f5af7a6a62ffb15cd7f37a23d52d0bbaf0d.zip
Do not traceback when we receive a message from a JID with no resource
-rw-r--r--src/core/handlers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/handlers.py b/src/core/handlers.py
index 119d9e74..462ba4d7 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -212,7 +212,7 @@ def on_normal_message(self, message):
return
conversation = self.get_conversation_by_jid(conv_jid, create=True)
- if isinstance(conversation, tabs.DynamicConversationTab):
+ if isinstance(conversation, tabs.DynamicConversationTab) and conv_jid.resource:
conversation.lock(conv_jid.resource)
if not own and not conversation.nick: