Skip to content
Snippets Groups Projects
Commit 0abf7d13 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

better string when someone change his sttus in gc

parent 66354775
No related branches found
No related tags found
No related merge requests found
......@@ -267,8 +267,13 @@ def chg_user_status(self, room_jid, nick, show, status, role, affiliation, \
model.set_value(iter, 3, show)
if (time.time() - self.room_creation[room_jid]) > 30 and \
nick != self.nicks[room_jid]:
self.print_conversation(_('%s is now %s (%s)') % (nick,
show, status), room_jid)
if show == 'offline':
st = _('%s has left') % nick
else:
st = _('%s is now %s') % (nick, show)
if status:
st += ' (' + status + ')'
self.print_conversation(st, room_jid)
def set_subject(self, room_jid, subject):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment