plugins/mod_xmlrpc.lua

changeset 1640
726ac98306d8
parent 1591
aaa1bcb7af98
child 2923
b7049746bd29
--- 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)

mercurial