Display actual status message on contact connection instead of
unreadable status type
This commit is contained in:
parent
7e78353621
commit
27f28f2624
1 changed files with 4 additions and 1 deletions
|
@ -385,7 +385,10 @@ class Core(object):
|
||||||
# No connected resource yet: the user's just connecting
|
# No connected resource yet: the user's just connecting
|
||||||
if time.time() - self.connection_time > 12:
|
if time.time() - self.connection_time > 12:
|
||||||
# We do not display messages if we recently logged in
|
# 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))
|
self.add_information_message_to_conversation_tab(jid.bare, '\x195}%s is \x194}online' % (jid.bare))
|
||||||
contact.add_resource(resource)
|
contact.add_resource(resource)
|
||||||
if isinstance(self.current_tab(), tabs.RosterInfoTab):
|
if isinstance(self.current_tab(), tabs.RosterInfoTab):
|
||||||
|
|
Loading…
Reference in a new issue