aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_xmlrpc.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-03-04 22:22:40 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-03-04 22:22:40 +0500
commitb32270030991773c6cafd526f676bd88da5e70f7 (patch)
treea41f23981aad33936b7f6fd91fffe53950b86dcf /plugins/mod_xmlrpc.lua
parent31bd01ae390739c81f73ea88a9717a3c62107f69 (diff)
downloadprosody-b32270030991773c6cafd526f676bd88da5e70f7.tar.gz
prosody-b32270030991773c6cafd526f676bd88da5e70f7.zip
mod_xmlrpc: Handle RPC stanzas sent over XMPP (XEP-0009: Jabber-RPC)
Diffstat (limited to 'plugins/mod_xmlrpc.lua')
-rw-r--r--plugins/mod_xmlrpc.lua5
1 files changed, 3 insertions, 2 deletions
diff --git a/plugins/mod_xmlrpc.lua b/plugins/mod_xmlrpc.lua
index a366dcaf..5a10c377 100644
--- a/plugins/mod_xmlrpc.lua
+++ b/plugins/mod_xmlrpc.lua
@@ -81,7 +81,7 @@ local function handle_xmlrpc_request(method, args)
return create_error_response(0, result or "nil");
end
---[[local function handle_xmpp_request(origin, stanza)
+local function handle_xmpp_request(origin, stanza)
local query = stanza.tags[1];
if query.name == "query" then
if #query.tags == 1 then
@@ -99,7 +99,8 @@ end
origin.send(st.error_reply(stanza, "cancel", "service-unavailable"));
end
end
-module:add_iq_handler({"c2s", "s2sin"}, "jabber:iq:rpc", handle_xmpp_request);]]
+module:add_iq_handler({"c2s", "s2sin"}, "jabber:iq:rpc", handle_xmpp_request);
+module:add_feature("jabber:iq:rpc");
local function handle_http_request(method, body, request)
local stanza = body and parse_xml(body);