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
commit2b974f31e049aad7b8087b133fb65f9718923a61 (patch)
treef747cec5628a781bedbf4869bfdd57c3f1ec5a81 /plugins/mod_admin_telnet.lua
parent0086d5819d632016a5795c9718be2f35c22ac8f5 (diff)
parent36910d3b8861030001ddc2c7fdd8fbe0f34887f9 (diff)
downloadprosody-2b974f31e049aad7b8087b133fb65f9718923a61.tar.gz
prosody-2b974f31e049aad7b8087b133fb65f9718923a61.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);