prevent traceback when changing resource of a control when there is no event for the account at all. Fixes #5375

This commit is contained in:
Yann Leboulanger 2009-10-30 09:44:40 +01:00
parent 5962494a9e
commit bf9c6fb6a1
1 changed files with 2 additions and 0 deletions

View File

@ -163,6 +163,8 @@ class Events:
del self._events[account][jid]
def change_jid(self, account, old_jid, new_jid):
if account not in self._events:
return
if old_jid not in self._events[account]:
return
if new_jid in self._events[account]: