diff options
author | mathieui <mathieui@mathieui.net> | 2011-11-07 23:07:32 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-11-08 00:47:56 +0100 |
commit | c2798ba8dea84394c702ccf58cbda95a975f8605 (patch) | |
tree | 21f40dd639b41e668e25860ffb678053256b69f2 /src | |
parent | 1b06a7d48bf3cb8503eae556f0cbf4b0b5128edf (diff) | |
download | poezio-c2798ba8dea84394c702ccf58cbda95a975f8605.tar.gz poezio-c2798ba8dea84394c702ccf58cbda95a975f8605.tar.bz2 poezio-c2798ba8dea84394c702ccf58cbda95a975f8605.tar.xz poezio-c2798ba8dea84394c702ccf58cbda95a975f8605.zip |
Display actual status message on contact connection instead of
unreadable status type
Diffstat (limited to 'src')
-rw-r--r-- | src/core.py | 5 |
1 files changed, 4 insertions, 1 deletions
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): |