aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-07-25 19:46:17 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-07-25 19:46:17 +0500
commit5eff54b937929c90c43deca8b8571367e593e5a1 (patch)
tree4d1ba5e8196fd430720b1189f30d81f524f6caa8
parent0a342e895babbbbb2db49eaf4db4982f3bbe3385 (diff)
downloadprosody-5eff54b937929c90c43deca8b8571367e593e5a1.tar.gz
prosody-5eff54b937929c90c43deca8b8571367e593e5a1.zip
mod_xmlrpc: Fixed typos
-rw-r--r--plugins/mod_xmlrpc.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_xmlrpc.lua b/plugins/mod_xmlrpc.lua
index 56312fc7..ff2c5f7f 100644
--- a/plugins/mod_xmlrpc.lua
+++ b/plugins/mod_xmlrpc.lua
@@ -67,14 +67,14 @@ local function parse_xml(xml)
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");