aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-07-25 19:58:24 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-07-25 19:58:24 +0500
commitad44e163c8396ce1521a389f660005c806d3b351 (patch)
tree297c99df08f7ca0a7680feff80cc038b7c3116e9 /plugins
parent5eff54b937929c90c43deca8b8571367e593e5a1 (diff)
downloadprosody-ad44e163c8396ce1521a389f660005c806d3b351.tar.gz
prosody-ad44e163c8396ce1521a389f660005c806d3b351.zip
mod_xmlrpc: Remove file and line number from XML-RPC errors
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_xmlrpc.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_xmlrpc.lua b/plugins/mod_xmlrpc.lua
index ff2c5f7f..05c0b8b0 100644
--- a/plugins/mod_xmlrpc.lua
+++ b/plugins/mod_xmlrpc.lua
@@ -83,7 +83,7 @@ local function handle_xmlrpc_request(jid, method, args)
end
return create_error_response(500, "Error in creating response: "..result);
end
- return create_error_response(0, result or "nil");
+ return create_error_response(0, (result and result:gmatch("[^:]*:[^:]*: (.*)")()) or "nil");
end
local function handle_xmpp_request(origin, stanza)