# HG changeset patch # User Waqas Hussain # Date 1248533177 -18000 # Node ID 638761692663479b4bc0520fb1fe45d6a260c6ac # Parent 812ae3be7bed94663b2b988f07d642debda96081 mod_xmlrpc: Fixed typos diff -r 812ae3be7bed -r 638761692663 plugins/mod_xmlrpc.lua --- a/plugins/mod_xmlrpc.lua Sat Jul 25 19:18:37 2009 +0500 +++ b/plugins/mod_xmlrpc.lua Sat Jul 25 19:46:17 2009 +0500 @@ -67,14 +67,14 @@ end local function handle_xmlrpc_request(jid, method, args) - local is_secure_call = (method:sub(1,7) ~= "secure/"); + local is_secure_call = (method:sub(1,7) == "secure/"); if not is_admin(jid) and not is_secure_call then return create_error_response(401, "not authorized"); end method = get_method(method); if not method then return create_error_response(404, "method not found"); end args = args or {}; - if is_secure_call then t_insert(args, 1, jid); end + if is_secure_call then table.insert(args, 1, jid); end local success, result = pcall(method, unpack(args)); if success then success, result = pcall(create_response, result or "nil");