From 0abf7d13174aa50a2f4db131c4ab80d028a7edab Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Tue, 7 Jun 2005 22:49:17 +0000 Subject: [PATCH] better string when someone change his sttus in gc --- src/groupchat_window.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/groupchat_window.py b/src/groupchat_window.py index 4cb68849a..372b7bcaf 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -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):