From 30194a8a9120a19d0b1f862d2b40ce391abdf846 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Fri, 1 Aug 2014 16:13:52 +0200 Subject: Fix a traceback when a receiving a message from a bare JID --- src/core/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/handlers.py') 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: -- cgit v1.2.3