From 947d1ffbb3be39670729264a7f53c028d7ecb2e3 Mon Sep 17 00:00:00 2001 From: Lance Stout Date: Sat, 14 Jan 2012 17:12:39 -0800 Subject: Fix xep_0030 reference warning. --- sleekxmpp/plugins/xep_0030/static.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sleekxmpp/plugins/xep_0030/static.py') 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): -- cgit v1.2.3