empty the list in gc when we are kicked

This commit is contained in:
Yann Leboulanger 2005-05-27 16:46:51 +00:00
parent 14985bf5d1
commit 23e5cace1b
1 changed files with 2 additions and 0 deletions

View File

@ -240,6 +240,8 @@ class Groupchat_window(chat.Chat):
self.print_conversation(_('%s has been kicked by %s: %s') % (nick, self.print_conversation(_('%s has been kicked by %s: %s') % (nick,
actor, reason), room_jid) actor, reason), room_jid)
self.remove_user(room_jid, nick) self.remove_user(room_jid, nick)
if nick == self.nicks[room_jid]: # We became offline
model.clear()
else: else:
iter = self.get_user_iter(room_jid, nick) iter = self.get_user_iter(room_jid, nick)
ji = jid ji = jid