fixed bug #7 -- muc roster leak

This commit is contained in:
Nathan Fritz 2010-03-26 13:59:29 -07:00
parent 0fc9072e5d
commit ec97c351de

View file

@ -136,7 +136,7 @@ class xep_0045(base.base_plugin):
return
entry = pr['muc'].getValues()
if pr['type'] == 'unavailable':
self.rooms[entry['room']][entry['nick']] = None
del self.rooms[entry['room']][entry['nick']]
else:
self.rooms[entry['room']][entry['nick']] = entry
logging.debug("MUC presence from %s/%s : %s" % (entry['room'],entry['nick'], entry))