Software /
code /
prosody
Changeset
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 |
parents | 5663:4e51ceee469c |
children | 5666:c1e1b265ee82 5670:9218a0e81a41 |
files | plugins/mod_admin_telnet.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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);