summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2011-11-07 23:07:32 +0100
committermathieui <mathieui@mathieui.net>2011-11-07 23:07:32 +0100
commit27f28f26243c2310dcfd3540e2b736a634b48faf (patch)
tree056a9207f7d2c7f4c5e1f723fea43601fb17187a
parent7e78353621f530cdfa0c5280386512aa40a36048 (diff)
downloadpoezio-27f28f26243c2310dcfd3540e2b736a634b48faf.tar.gz
poezio-27f28f26243c2310dcfd3540e2b736a634b48faf.tar.bz2
poezio-27f28f26243c2310dcfd3540e2b736a634b48faf.tar.xz
poezio-27f28f26243c2310dcfd3540e2b736a634b48faf.zip
Display actual status message on contact connection instead of
unreadable status type
-rw-r--r--src/core.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/core.py b/src/core.py
index 481fb1c2..a9c97022 100644
--- a/src/core.py
+++ b/src/core.py
@@ -385,7 +385,10 @@ class Core(object):
# No connected resource yet: the user's just connecting
if time.time() - self.connection_time > 12:
# We do not display messages if we recently logged in
- self.information("\x193}%s \x195}is \x194}online\x195} (\x190}%s\x195})" % (resource.get_jid().bare, status), "Roster")
+ if status_message:
+ self.information("\x193}%s \x195}is \x194}online\x195} (\x19o%s\x195})" % (resource.get_jid().bare, status_message), "Roster")
+ else:
+ self.information("\x193}%s \x195}is \x194}online\x195}" % resource.get_jid().bare, "Roster")
self.add_information_message_to_conversation_tab(jid.bare, '\x195}%s is \x194}online' % (jid.bare))
contact.add_resource(resource)
if isinstance(self.current_tab(), tabs.RosterInfoTab):