From ec97c351deb6dd498cb0ae2cb5794ecb84f2bcb0 Mon Sep 17 00:00:00 2001 From: Nathan Fritz Date: Fri, 26 Mar 2010 13:59:29 -0700 Subject: [PATCH] fixed bug #7 -- muc roster leak --- sleekxmpp/plugins/xep_0045.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleekxmpp/plugins/xep_0045.py b/sleekxmpp/plugins/xep_0045.py index d530a0a..1e69523 100644 --- a/sleekxmpp/plugins/xep_0045.py +++ b/sleekxmpp/plugins/xep_0045.py @@ -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))