From c08dad91e55dd158523c2b12fed9da7aa39f582f Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Mon, 10 Jun 2013 14:35:35 +0200 Subject: mod_admin_telnet: Fix another wrong boolean expression --- plugins/mod_admin_telnet.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') 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); -- cgit v1.2.3