summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0045.py
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-05-12 13:45:36 -0700
committerNathan Fritz <nathan@andyet.net>2010-05-12 13:45:36 -0700
commit223507f36f6dd4c0d4a0733a524fd529231b010b (patch)
treed8e5de1732e9651299a27c9300e464221066ec65 /sleekxmpp/plugins/xep_0045.py
parent8515cef11734613267b1b31f543bca620beac864 (diff)
downloadslixmpp-223507f36f6dd4c0d4a0733a524fd529231b010b.tar.gz
slixmpp-223507f36f6dd4c0d4a0733a524fd529231b010b.tar.bz2
slixmpp-223507f36f6dd4c0d4a0733a524fd529231b010b.tar.xz
slixmpp-223507f36f6dd4c0d4a0733a524fd529231b010b.zip
fixed a rather large memory leak
Diffstat (limited to 'sleekxmpp/plugins/xep_0045.py')
-rw-r--r--sleekxmpp/plugins/xep_0045.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/sleekxmpp/plugins/xep_0045.py b/sleekxmpp/plugins/xep_0045.py
index 240e6b9a..937c6f96 100644
--- a/sleekxmpp/plugins/xep_0045.py
+++ b/sleekxmpp/plugins/xep_0045.py
@@ -93,10 +93,10 @@ class MUCPresence(ElementBase):
return self
def getNick(self):
- return self.parent['from'].resource
+ return self.parent()['from'].resource
def getRoom(self):
- return self.parent['from'].bare
+ return self.parent()['from'].bare
def setNick(self, value):
logging.warning("Cannot set nick through mucpresence plugin.")