upgrade the account variable in opened chat / groupchat / information windows

This commit is contained in:
Yann Leboulanger 2005-03-21 21:52:54 +00:00
parent c231084e18
commit 2b30c63163
1 changed files with 3 additions and 0 deletions

View File

@ -1119,6 +1119,9 @@ class Account_modification_window:
self.plugin.roster.contacts[self.account]
self.plugin.sleeper_state[name] = \
self.plugin.sleeper_state[self.account]
for kind in ['infos', 'chats', 'gc']:
for jid in self.plugin.windows[name][kind]:
self.plugin.windows[name][kind][jid].account = name
del self.plugin.windows[self.account]
del self.plugin.queues[self.account]
del self.plugin.connected[self.account]