aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_admin_telnet.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2013-06-10 14:37:02 +0200
committerKim Alvefur <zash@zash.se>2013-06-10 14:37:02 +0200
commit08abe5eba3289a2b84ccd4af5c959e443da7e132 (patch)
treef747cec5628a781bedbf4869bfdd57c3f1ec5a81 /plugins/mod_admin_telnet.lua
parent1e29dc5c934fd38f4318679eb58a5ef106107cca (diff)
parentc08dad91e55dd158523c2b12fed9da7aa39f582f (diff)
downloadprosody-08abe5eba3289a2b84ccd4af5c959e443da7e132.tar.gz
prosody-08abe5eba3289a2b84ccd4af5c959e443da7e132.zip
Merge 0.9->trunk
Diffstat (limited to 'plugins/mod_admin_telnet.lua')
-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 0fcb96b3..73c4a578 100644
--- a/plugins/mod_admin_telnet.lua
+++ b/plugins/mod_admin_telnet.lua
@@ -991,7 +991,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);