From fccf7f5af7a6a62ffb15cd7f37a23d52d0bbaf0d Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Mon, 28 Jul 2014 14:57:48 +0200 Subject: [PATCH] Do not traceback when we receive a message from a JID with no resource --- src/core/handlers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: