diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-07-25 19:58:24 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-07-25 19:58:24 +0500 |
commit | ad44e163c8396ce1521a389f660005c806d3b351 (patch) | |
tree | 297c99df08f7ca0a7680feff80cc038b7c3116e9 /plugins/mod_xmlrpc.lua | |
parent | 5eff54b937929c90c43deca8b8571367e593e5a1 (diff) | |
download | prosody-ad44e163c8396ce1521a389f660005c806d3b351.tar.gz prosody-ad44e163c8396ce1521a389f660005c806d3b351.zip |
mod_xmlrpc: Remove file and line number from XML-RPC errors
Diffstat (limited to 'plugins/mod_xmlrpc.lua')
-rw-r--r-- | plugins/mod_xmlrpc.lua | 2 |
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) |