usermanager: Check host exists before trying to look up admins for it

vault/0.11
Matthew Wild 15 years ago
parent ebb9c9d585
commit ca74173a82
  1. 2
      core/usermanager.lua

@ -96,6 +96,8 @@ function get_provider(host)
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 "*";

Loading…
Cancel
Save