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 | c08dad91e55dd158523c2b12fed9da7aa39f582f (patch) | |
tree | 4422f06bd14566e9bda0237a6c2057527f7388d5 /plugins | |
parent | d7d15e2ec79c83f13e4dd8bf7c52db658290d336 (diff) | |
download | prosody-c08dad91e55dd158523c2b12fed9da7aa39f582f.tar.gz prosody-c08dad91e55dd158523c2b12fed9da7aa39f582f.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); |