Need to run post_init properly.

This commit is contained in:
Lance Stout 2011-01-09 10:03:32 -05:00
parent 2076d506b4
commit acdf9e2d22
2 changed files with 2 additions and 0 deletions

View file

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

View file

@ -100,6 +100,7 @@ class xep_0059(base_plugin):
def post_init(self):
"""Handle inter-plugin dependencies."""
base_plugin.post_init(self)
self.xmpp['xep_0030'].add_feature(Set.namespace)
def iterate(self, stanza, interface):