Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 5643:e612e1887e39
mod_admin_telnet: Fix inverted boolean logic
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 04 Jun 2013 19:35:41 +0200 |
parent | 5630:5f3c0b11aa88 |
child | 5645:ae079d57af2e |
child | 5665:da1881e1b35b |
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);