Fix a traceback when a receiving a message from a bare JID

This commit is contained in:
Florent Le Coz 2014-08-01 16:13:52 +02:00
parent 271fd662a1
commit 30194a8a91

View file

@ -221,7 +221,7 @@ def on_normal_message(self, message):
return return
conversation = self.get_conversation_by_jid(conv_jid, create=True) 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) conversation.lock(conv_jid.resource)
if not own and not conversation.nick: if not own and not conversation.nick: