Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 5665:da1881e1b35b
mod_admin_telnet: Fix another wrong boolean expression
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 10 Jun 2013 14:35:35 +0200 |
parent | 5643:e612e1887e39 |
child | 5666:c1e1b265ee82 |
child | 5672:0c68cea74d5d |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sun Jun 09 17:00:26 2013 +0200 +++ b/plugins/mod_admin_telnet.lua Mon Jun 10 14:35:35 2013 +0200 @@ -973,7 +973,7 @@ 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);