Software /
code /
prosody
Changeset
5643:e612e1887e39
mod_admin_telnet: Fix inverted boolean logic
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 04 Jun 2013 19:35:41 +0200 |
parents | 5642:5862bb57a3f1 |
children | 5644:f9cfe6f5d60f |
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 02 16:23:19 2013 -0400 +++ b/plugins/mod_admin_telnet.lua Tue Jun 04 19:35:41 2013 +0200 @@ -958,7 +958,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.delete_user(username, host);