Remove the occasional warning about XEP-0059 not loaded.

This commit is contained in:
Lance Stout 2011-02-24 16:13:44 -05:00
parent 1a81b2f464
commit 45ccb31356

View file

@ -119,7 +119,7 @@ class xep_0030(base_plugin):
def post_init(self):
"""Handle cross-plugin dependencies."""
base_plugin.post_init(self)
if self.xmpp['xep_0059']:
if 'xep_0059' in self.xmpp.plugin:
register_stanza_plugin(DiscoItems,
self.xmpp['xep_0059'].stanza.Set)