Software /
code /
prosody
Diff
plugins/mod_admin_telnet.lua @ 5666:c1e1b265ee82
Merge 0.9->trunk
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 10 Jun 2013 14:37:02 +0200 |
parent | 5662:685d46ec352b |
parent | 5665:da1881e1b35b |
child | 5674:ebdbf4cf0b2f |
line wrap: on
line diff
--- a/plugins/mod_admin_telnet.lua Sun Jun 09 17:03:15 2013 +0200 +++ b/plugins/mod_admin_telnet.lua Mon Jun 10 14:37:02 2013 +0200 @@ -991,7 +991,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);