mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-30 19:19:55 +00:00
Fix xep_0030 reference warning.
This commit is contained in:
parent
de35848500
commit
947d1ffbb3
2 changed files with 3 additions and 3 deletions
|
@ -106,7 +106,7 @@ class xep_0030(base_plugin):
|
||||||
register_stanza_plugin(Iq, DiscoInfo)
|
register_stanza_plugin(Iq, DiscoInfo)
|
||||||
register_stanza_plugin(Iq, DiscoItems)
|
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.use_cache = self.config.get('use_cache', True)
|
||||||
self.wrap_results = self.config.get('wrap_results', False)
|
self.wrap_results = self.config.get('wrap_results', False)
|
||||||
|
|
|
@ -39,7 +39,7 @@ class StaticDisco(object):
|
||||||
xmpp -- The main SleekXMPP 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
|
Create a static disco interface. Sets of disco#info and
|
||||||
disco#items are maintained for every given JID and node
|
disco#items are maintained for every given JID and node
|
||||||
|
@ -51,7 +51,7 @@ class StaticDisco(object):
|
||||||
"""
|
"""
|
||||||
self.nodes = {}
|
self.nodes = {}
|
||||||
self.xmpp = xmpp
|
self.xmpp = xmpp
|
||||||
self.disco = xmpp['xep_0030']
|
self.disco = disco
|
||||||
self.lock = threading.RLock()
|
self.lock = threading.RLock()
|
||||||
|
|
||||||
def add_node(self, jid=None, node=None, ifrom=None):
|
def add_node(self, jid=None, node=None, ifrom=None):
|
||||||
|
|
Loading…
Reference in a new issue