diff -r 0914d128c55e -r 726ac98306d8 plugins/mod_xmlrpc.lua --- a/plugins/mod_xmlrpc.lua Wed Aug 05 16:37:28 2009 +0100 +++ b/plugins/mod_xmlrpc.lua Wed Aug 05 20:00:07 2009 +0100 @@ -83,7 +83,7 @@ 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)