From c2798ba8dea84394c702ccf58cbda95a975f8605 Mon Sep 17 00:00:00 2001 From: mathieui Date: Mon, 7 Nov 2011 23:07:32 +0100 Subject: Display actual status message on contact connection instead of unreadable status type --- src/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/core.py b/src/core.py index baeb6693..afdd1c14 100644 --- a/src/core.py +++ b/src/core.py @@ -403,7 +403,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): -- cgit v1.2.3