better string when someone change his sttus in gc
This commit is contained in:
parent
6635477577
commit
0abf7d1317
|
@ -267,8 +267,13 @@ class Groupchat_window(chat.Chat):
|
||||||
model.set_value(iter, 3, show)
|
model.set_value(iter, 3, show)
|
||||||
if (time.time() - self.room_creation[room_jid]) > 30 and \
|
if (time.time() - self.room_creation[room_jid]) > 30 and \
|
||||||
nick != self.nicks[room_jid]:
|
nick != self.nicks[room_jid]:
|
||||||
self.print_conversation(_('%s is now %s (%s)') % (nick,
|
if show == 'offline':
|
||||||
show, status), room_jid)
|
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):
|
def set_subject(self, room_jid, subject):
|
||||||
|
|
Loading…
Reference in New Issue