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

@@ -35,7 +35,7 @@ class xep_0199(base.base_plugin):
#self.xmpp.add_event_handler('session_start', self.handler_pingserver, threaded=True)
def post_init(self):
self.xmpp['xep_0030'].add_feature('http://www.xmpp.org/extensions/xep-0199.html#ns')
self.xmpp.plugin['xep_0030'].add_feature('http://www.xmpp.org/extensions/xep-0199.html#ns')
def handler_pingserver(self, xml):
if not self.running: