Fixed error registering a plugin. To add a feature to another plugin, it should look into xmpp.plugin dict

This commit is contained in:
Hernan E Grecco
2010-05-26 06:10:34 +08:00
committed by Thom Nichols
parent 8b3b8aca9e
commit d452085049
4 changed files with 5 additions and 5 deletions

View File

@@ -31,7 +31,7 @@ class xep_0004(base.base_plugin):
self.xmpp.add_handler("<message><x xmlns='jabber:x:data' /></message>", self.handler_message_xform)
def post_init(self):
self.xmpp['xep_0030'].add_feature('jabber:x:data')
self.xmpp.plugin['xep_0030'].add_feature('jabber:x:data')
def handler_message_xform(self, xml):
object = self.handle_form(xml)