From 8be400792ae70b44790650010301cce0fb6b9fce Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Fri, 25 Feb 2011 00:38:34 +0100 Subject: [PATCH] Fix a tb when receiving the first private message of a conversation --- src/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core.py b/src/core.py index 8014a4df..88d97706 100644 --- a/src/core.py +++ b/src/core.py @@ -625,7 +625,7 @@ class Core(object): colorized=False, forced_user=self.get_room_by_name(room_from).get_user_by_name(nick_from)) conversation = self.get_tab_by_name(jid.full, tabs.PrivateTab) - if conversation.remote_wants_chatstates is None: + if conversation and conversation.remote_wants_chatstates is None: if message['chat_state']: conversation.remote_wants_chatstates = True else: