better string when someone change his sttus in gc

This commit is contained in:
Yann Leboulanger 2005-06-07 22:49:17 +00:00
parent 6635477577
commit 0abf7d1317
1 changed files with 7 additions and 2 deletions

View File

@ -267,8 +267,13 @@ class Groupchat_window(chat.Chat):
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):