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
Nathan Fritz
parent
f165b4b52b
commit
f18c790824
@@ -33,7 +33,7 @@ class xep_0092(base.base_plugin):
|
||||
self.xmpp.add_handler("<iq type='get' xmlns='%s'><query xmlns='jabber:iq:version' /></iq>" % self.xmpp.default_ns, self.report_version)
|
||||
|
||||
def post_init(self):
|
||||
self.xmpp['xep_0030'].add_feature('jabber:iq:version')
|
||||
self.xmpp.plugin['xep_0030'].add_feature('jabber:iq:version')
|
||||
|
||||
def report_version(self, xml):
|
||||
iq = self.xmpp.makeIqResult(xml.get('id', 'unknown'))
|
||||
|
||||
Reference in New Issue
Block a user