mirror of
https://github.com/correl/SleekXMPP.git
synced 2024-11-24 03:00:15 +00:00
Fixed error registering a plugin. To add a feature to another plugin, it should look into xmpp.plugin dict
This commit is contained in:
parent
f165b4b52b
commit
f18c790824
4 changed files with 5 additions and 5 deletions
|
@ -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)
|
self.xmpp.add_handler("<message><x xmlns='jabber:x:data' /></message>", self.handler_message_xform)
|
||||||
|
|
||||||
def post_init(self):
|
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):
|
def handler_message_xform(self, xml):
|
||||||
object = self.handle_form(xml)
|
object = self.handle_form(xml)
|
||||||
|
|
|
@ -185,8 +185,8 @@ class xep_0009(base.base_plugin):
|
||||||
self.activeCalls = []
|
self.activeCalls = []
|
||||||
|
|
||||||
def post_init(self):
|
def post_init(self):
|
||||||
self.xmpp['xep_0030'].add_feature('jabber:iq:rpc')
|
self.xmpp.plugin['xep_0030'].add_feature('jabber:iq:rpc')
|
||||||
self.xmpp['xep_0030'].add_identity('automatition','rpc')
|
self.xmpp.plugin['xep_0030'].add_identity('automatition','rpc')
|
||||||
|
|
||||||
def register_call(self, method, name=None):
|
def register_call(self, method, name=None):
|
||||||
#@returns an string that can be used in acl commands.
|
#@returns an string that can be used in acl commands.
|
||||||
|
|
|
@ -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)
|
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):
|
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):
|
def report_version(self, xml):
|
||||||
iq = self.xmpp.makeIqResult(xml.get('id', 'unknown'))
|
iq = self.xmpp.makeIqResult(xml.get('id', 'unknown'))
|
||||||
|
|
|
@ -35,7 +35,7 @@ class xep_0199(base.base_plugin):
|
||||||
#self.xmpp.add_event_handler('session_start', self.handler_pingserver, threaded=True)
|
#self.xmpp.add_event_handler('session_start', self.handler_pingserver, threaded=True)
|
||||||
|
|
||||||
def post_init(self):
|
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):
|
def handler_pingserver(self, xml):
|
||||||
if not self.running:
|
if not self.running:
|
||||||
|
|
Loading…
Reference in a new issue