aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-06-10 14:35:35 +0200
committerKim Alvefur <zash@zash.se>2013-06-10 14:35:35 +0200
commiteeea0db923be02cf72284090555e0a5ebb59fa6b (patch)
tree4422f06bd14566e9bda0237a6c2057527f7388d5 /plugins
parent4fd33aaeaebada634436d77eb947bffacef74de8 (diff)
downloadprosody-eeea0db923be02cf72284090555e0a5ebb59fa6b.tar.gz
prosody-eeea0db923be02cf72284090555e0a5ebb59fa6b.zip
mod_admin_telnet: Fix another wrong boolean expression
Diffstat (limited to 'plugins')
-rw-r--r--plugins/mod_admin_telnet.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_admin_telnet.lua b/plugins/mod_admin_telnet.lua
index 5264c21b..25830f76 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -973,7 +973,7 @@ function def_env.user:password(jid, password)
local username, host = jid_split(jid);
if not hosts[host] then
return nil, "No such host: "..host;
- elseif um.user_exists(username, host) then
+ elseif not um.user_exists(username, host) then
return nil, "No such user";
end
local ok, err = um.set_password(username, password, host);