diff --git a/src/groupchat_window.py b/src/groupchat_window.py index e7b9ee481..4cbf6b9cf 100644 --- a/src/groupchat_window.py +++ b/src/groupchat_window.py @@ -292,10 +292,13 @@ class GroupchatWindow(chat.Chat): if not role: role = 'visitor' model = self.list_treeview[room_jid].get_model() - if show == 'offline' or show == 'error': + if show in ('offline', 'error'): if statusCode == '307': self.print_conversation(_('%s has been kicked by %s: %s') % (nick, actor, reason), room_jid) + #FIXME: this produced foo has been kciked by JID: reason + #Should we show the JID to everyone? the same for ban + #I propose we use nick elif statusCode == '301': self.print_conversation(_('%s has been banned by %s: %s') % (nick, actor, reason), room_jid)