Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 5645:ae079d57af2e
Merge 0.9->trunk
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Wed, 05 Jun 2013 21:36:29 +0100 |
parent | 5631:78bc91f0d74b |
parent | 5643:e612e1887e39 |
child | 5662:685d46ec352b |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Mon Jun 03 12:50:37 2013 -0400 +++ b/plugins/mod_admin_telnet.lua Wed Jun 05 21:36:29 2013 +0100 @@ -976,7 +976,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);