# HG changeset patch # User Waqas Hussain # Date 1248533904 -18000 # Node ID aaa1bcb7af986b8d268121e3abbbdd560b62eca6 # Parent 638761692663479b4bc0520fb1fe45d6a260c6ac mod_xmlrpc: Remove file and line number from XML-RPC errors diff -r 638761692663 -r aaa1bcb7af98 plugins/mod_xmlrpc.lua --- a/plugins/mod_xmlrpc.lua Sat Jul 25 19:46:17 2009 +0500 +++ b/plugins/mod_xmlrpc.lua Sat Jul 25 19:58:24 2009 +0500 @@ -83,7 +83,7 @@ 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)