mod_admin_telnet: Fix another wrong boolean expression
authorKim Alvefur <zash@zash.se>
Mon, 10 Jun 2013 12:35:35 +0000 (14:35 +0200)
committerKim Alvefur <zash@zash.se>
Mon, 10 Jun 2013 12:35:35 +0000 (14:35 +0200)
plugins/mod_admin_telnet.lua

index 5264c21bef6b12c0243c0bdb976422b5d8409540..25830f764f1e3be65845474101b2ce1a801a9e09 100644 (file)
@@ -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);