Fixed error registering a plugin. To add a feature to another plugin, it should look into xmpp.plugin dict
This commit is contained in:
committed by
Thom Nichols
parent
8b3b8aca9e
commit
d452085049
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user