aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_xmlrpc.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2009-08-05 20:00:07 +0100
committerMatthew Wild <mwild1@gmail.com>2009-08-05 20:00:07 +0100
commit1bf0d29c4ddeaad3d9e7c121fe1bb7666fa6c551 (patch)
treeaf88f09c2fee84cd64ac37c5a2e595a5509c3d5f /plugins/mod_xmlrpc.lua
parent4de34d6a8c4adbea78f40f9f488e63a70e9fc151 (diff)
downloadprosody-1bf0d29c4ddeaad3d9e7c121fe1bb7666fa6c551.tar.gz
prosody-1bf0d29c4ddeaad3d9e7c121fe1bb7666fa6c551.zip
mod_xmlrpc: Correct stripping of filename/line number prefix in RPC method error results
Diffstat (limited to 'plugins/mod_xmlrpc.lua')
-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 05c0b8b0..7165386a 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 and result:gmatch("[^:]*:[^:]*: (.*)")()) or "nil");
+ return create_error_response(0, tostring(result):gsub("^[^:]+:%d+: ", ""));
end
local function handle_xmpp_request(origin, stanza)