summaryrefslogtreecommitdiff
path: root/sleekxmpp/plugins/xep_0009
diff options
context:
space:
mode:
authorLance Stout <lancestout@gmail.com>2013-02-21 13:55:34 -0800
committerLance Stout <lancestout@gmail.com>2013-02-21 13:55:34 -0800
commit58f5e4702b143208bc80f8a507b358f2c2b1745d (patch)
treecdb944a57b37d37854329bf9a682a0356fa48368 /sleekxmpp/plugins/xep_0009
parent8c763fcf43b2690c4f02a9f577fc2d6d72917ee2 (diff)
parentd9906756cfc546bd182688fdcaeb0aa8fe96e6dd (diff)
downloadslixmpp-58f5e4702b143208bc80f8a507b358f2c2b1745d.tar.gz
slixmpp-58f5e4702b143208bc80f8a507b358f2c2b1745d.tar.bz2
slixmpp-58f5e4702b143208bc80f8a507b358f2c2b1745d.tar.xz
slixmpp-58f5e4702b143208bc80f8a507b358f2c2b1745d.zip
Merge pull request #224 from anton-ryzhov/no_deprecated_methods_usage
Don't use internally deprecated methods
Diffstat (limited to 'sleekxmpp/plugins/xep_0009')
-rw-r--r--sleekxmpp/plugins/xep_0009/rpc.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/sleekxmpp/plugins/xep_0009/rpc.py b/sleekxmpp/plugins/xep_0009/rpc.py
index 4e1c538b..3378c650 100644
--- a/sleekxmpp/plugins/xep_0009/rpc.py
+++ b/sleekxmpp/plugins/xep_0009/rpc.py
@@ -32,15 +32,15 @@ class XEP_0009(BasePlugin):
register_stanza_plugin(RPCQuery, MethodCall)
register_stanza_plugin(RPCQuery, MethodResponse)
- self.xmpp.registerHandler(
+ self.xmpp.register_handler(
Callback('RPC Call', MatchXPath('{%s}iq/{%s}query/{%s}methodCall' % (self.xmpp.default_ns, RPCQuery.namespace, RPCQuery.namespace)),
self._handle_method_call)
)
- self.xmpp.registerHandler(
+ self.xmpp.register_handler(
Callback('RPC Call', MatchXPath('{%s}iq/{%s}query/{%s}methodResponse' % (self.xmpp.default_ns, RPCQuery.namespace, RPCQuery.namespace)),
self._handle_method_response)
)
- self.xmpp.registerHandler(
+ self.xmpp.register_handler(
Callback('RPC Call', MatchXPath('{%s}iq/{%s}error' % (self.xmpp.default_ns, self.xmpp.default_ns)),
self._handle_error)
)