summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorent Le Coz <louiz@louiz.org>2011-02-25 00:38:34 +0100
committerFlorent Le Coz <louiz@louiz.org>2011-02-25 00:38:34 +0100
commit8be400792ae70b44790650010301cce0fb6b9fce (patch)
tree2bc3f43deb85be434c6db870c468784e14335e3b
parent001a20c91a6414b2fd4230bfae78fa7df57c291e (diff)
downloadpoezio-8be400792ae70b44790650010301cce0fb6b9fce.tar.gz
poezio-8be400792ae70b44790650010301cce0fb6b9fce.tar.bz2
poezio-8be400792ae70b44790650010301cce0fb6b9fce.tar.xz
poezio-8be400792ae70b44790650010301cce0fb6b9fce.zip
Fix a tb when receiving the first private message of a conversation
-rw-r--r--src/core.py2
1 files changed, 1 insertions, 1 deletions
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: