# HG changeset patch # User Matthew Wild # Date 1302006379 -3600 # Node ID 6b0d7d94eb7f95dcd3b17c97e71cc44e531cf6a7 # Parent 75ef9ea83b078a7a3d4ada086f432f45866e5ac1 usermanager: Check host exists before trying to look up admins for it diff -r 75ef9ea83b07 -r 6b0d7d94eb7f core/usermanager.lua --- a/core/usermanager.lua Tue Apr 05 13:20:09 2011 +0100 +++ b/core/usermanager.lua Tue Apr 05 13:26:19 2011 +0100 @@ -96,6 +96,8 @@ end function is_admin(jid, host) + if host and not hosts[host] then return false; end + local is_admin; jid = jid_bare(jid); host = host or "*";