summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0030
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2012-01-14 17:12:39 -0800
committerLance Stout <lancestout@gmail.com>2012-01-14 17:12:39 -0800
commit947d1ffbb3be39670729264a7f53c028d7ecb2e3 (patch)
tree9be1b1d97a237128d4b45d9bf8025c2145307c76 /sleekxmpp/plugins/xep_0030
parentde35848500ac2a7774f0d723226a406bade4e82a (diff)
downloadslixmpp-947d1ffbb3be39670729264a7f53c028d7ecb2e3.tar.gz
slixmpp-947d1ffbb3be39670729264a7f53c028d7ecb2e3.tar.bz2
slixmpp-947d1ffbb3be39670729264a7f53c028d7ecb2e3.tar.xz
slixmpp-947d1ffbb3be39670729264a7f53c028d7ecb2e3.zip
Fix xep_0030 reference warning.
Diffstat (limited to 'sleekxmpp/plugins/xep_0030')
-rw-r--r--sleekxmpp/plugins/xep_0030/disco.py2
-rw-r--r--sleekxmpp/plugins/xep_0030/static.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/sleekxmpp/plugins/xep_0030/disco.py b/sleekxmpp/plugins/xep_0030/disco.py
index 58f4f20c..2267401e 100644
--- a/sleekxmpp/plugins/xep_0030/disco.py
+++ b/sleekxmpp/plugins/xep_0030/disco.py
@@ -106,7 +106,7 @@ class xep_0030(base_plugin):
register_stanza_plugin(Iq, DiscoInfo)
register_stanza_plugin(Iq, DiscoItems)
- self.static = StaticDisco(self.xmpp)
+ self.static = StaticDisco(self.xmpp, self)
self.use_cache = self.config.get('use_cache', True)
self.wrap_results = self.config.get('wrap_results', False)
diff --git a/sleekxmpp/plugins/xep_0030/static.py b/sleekxmpp/plugins/xep_0030/static.py
index 0b196b40..e0ac29c6 100644
--- a/sleekxmpp/plugins/xep_0030/static.py
+++ b/sleekxmpp/plugins/xep_0030/static.py
@@ -39,7 +39,7 @@ class StaticDisco(object):
xmpp -- The main SleekXMPP object.
"""
- def __init__(self, xmpp):
+ def __init__(self, xmpp, disco):
"""
Create a static disco interface. Sets of disco#info and
disco#items are maintained for every given JID and node
@@ -51,7 +51,7 @@ class StaticDisco(object):
"""
self.nodes = {}
self.xmpp = xmpp
- self.disco = xmpp['xep_0030']
+ self.disco = disco
self.lock = threading.RLock()
def add_node(self, jid=None, node=None, ifrom=None):