summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins
diff options
context:
space:
mode:
authorNathan Fritz <nathan@andyet.net>2010-05-13 04:45:36 +0800
committerTom Nichols <tmnichols@gmail.com>2010-05-14 01:47:19 +0800
commit4c410dd48aefc69682c30f28e830e5dee62a04ab (patch)
treeaf3fd36f92a9fbf4660b5264137680070a5da893 /sleekxmpp/plugins
parente0c32b6d9bc357e79db04ea3126a614e038af928 (diff)
downloadslixmpp-4c410dd48aefc69682c30f28e830e5dee62a04ab.tar.gz
slixmpp-4c410dd48aefc69682c30f28e830e5dee62a04ab.tar.bz2
slixmpp-4c410dd48aefc69682c30f28e830e5dee62a04ab.tar.xz
slixmpp-4c410dd48aefc69682c30f28e830e5dee62a04ab.zip
fixed a rather large memory leak
Diffstat (limited to 'sleekxmpp/plugins')
-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.")