aboutsummaryrefslogtreecommitdiffstats
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
commit36910d3b8861030001ddc2c7fdd8fbe0f34887f9 (patch)
tree4422f06bd14566e9bda0237a6c2057527f7388d5
parent4675a091eb6a3f877c47b95f03026b8688c66d05 (diff)
downloadprosody-36910d3b8861030001ddc2c7fdd8fbe0f34887f9.tar.gz
prosody-36910d3b8861030001ddc2c7fdd8fbe0f34887f9.zip
mod_admin_telnet: Fix another wrong boolean expression
-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);