From 63050229fe26ef2a3ad7d90ba222f2266852bf7f 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/mod_admin_telnet.lua') 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