diff options
author | Kim Alvefur <zash@zash.se> | 2013-06-10 14:35:35 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2013-06-10 14:35:35 +0200 |
commit | 63050229fe26ef2a3ad7d90ba222f2266852bf7f (patch) | |
tree | 4422f06bd14566e9bda0237a6c2057527f7388d5 /plugins | |
parent | 2da39d65d60a4679be4c938a4d39e34986a4718f (diff) | |
download | prosody-63050229fe26ef2a3ad7d90ba222f2266852bf7f.tar.gz prosody-63050229fe26ef2a3ad7d90ba222f2266852bf7f.zip |
mod_admin_telnet: Fix another wrong boolean expression
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_admin_telnet.lua | 2 |
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); |