print a user friendly show when a contact change his status
This commit is contained in:
parent
5293788dc1
commit
1d4d9f5229
1 changed files with 2 additions and 1 deletions
|
@ -420,8 +420,9 @@ class Roster_window:
|
||||||
name = user.name
|
name = user.name
|
||||||
if user.resource != '':
|
if user.resource != '':
|
||||||
name += '/' + user.resource
|
name += '/' + user.resource
|
||||||
|
uf_show = helpers.get_uf_status(show)
|
||||||
self.plugin.windows[account]['chats'][jid].print_conversation(
|
self.plugin.windows[account]['chats'][jid].print_conversation(
|
||||||
_('%s is now %s (%s)') % (name, show, status), jid, 'status')
|
_('%s is now %s (%s)') % (name, uf_show, status), jid, 'status')
|
||||||
|
|
||||||
def on_info(self, widget, user, account):
|
def on_info(self, widget, user, account):
|
||||||
'''Call vcard_information_window class to display user's information'''
|
'''Call vcard_information_window class to display user's information'''
|
||||||
|
|
Loading…
Add table
Reference in a new issue