aboutsummaryrefslogtreecommitdiffstats
path: root/core/usermanager.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2011-04-05 13:26:19 +0100
committerMatthew Wild <mwild1@gmail.com>2011-04-05 13:26:19 +0100
commitca74173a8221e9cd93db30c7bb89c8b181f8b60b (patch)
tree83b2e5e17e39894221c183fe1c7186bbd688e05b /core/usermanager.lua
parentebb9c9d5859f51592930c012d1da82b1dd294b5c (diff)
downloadprosody-ca74173a8221e9cd93db30c7bb89c8b181f8b60b.tar.gz
prosody-ca74173a8221e9cd93db30c7bb89c8b181f8b60b.zip
usermanager: Check host exists before trying to look up admins for it
Diffstat (limited to 'core/usermanager.lua')
-rw-r--r--core/usermanager.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/usermanager.lua b/core/usermanager.lua
index 5e2e41fc..0152afd7 100644
--- a/core/usermanager.lua
+++ b/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 "*";