summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2014-08-01 16:13:52 +0200
committerFlorent Le Coz <louiz@louiz.org>2014-08-01 16:13:52 +0200
commit30194a8a9120a19d0b1f862d2b40ce391abdf846 (patch)
tree889721b8428053a694f92093535aa608d3c0b57c /src
parent271fd662a18d0a289fa73c1f42885a451accb1b8 (diff)
downloadpoezio-30194a8a9120a19d0b1f862d2b40ce391abdf846.tar.gz
poezio-30194a8a9120a19d0b1f862d2b40ce391abdf846.tar.bz2
poezio-30194a8a9120a19d0b1f862d2b40ce391abdf846.tar.xz
poezio-30194a8a9120a19d0b1f862d2b40ce391abdf846.zip
Fix a traceback when a receiving a message from a bare JID
Diffstat (limited to 'src')
-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 129dfadb..54a5885d 100644
--- a/src/core/handlers.py
+++ b/src/core/handlers.py
@@ -221,7 +221,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: