use in which is cleaner and add a FIXME for discussion

This commit is contained in:
Nikos Kouremenos 2005-07-23 14:12:59 +00:00
parent 586d268c72
commit 9550e80220
1 changed files with 4 additions and 1 deletions

View File

@ -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)