From 42d53ec2cf2cec4e3ee1816d94ff0afe8a95fb90 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 31 Jul 2010 11:30:16 +0100 Subject: usermanager: Fix two nil global accesses --- core/usermanager.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/usermanager.lua b/core/usermanager.lua index 43e43df9..62bbaee5 100644 --- a/core/usermanager.lua +++ b/core/usermanager.lua @@ -107,7 +107,7 @@ function is_admin(jid, host) break; end end - elseif admins then + elseif host_admins then log("error", "Option 'admins' for host '%s' is not a list", host); end end @@ -120,7 +120,7 @@ function is_admin(jid, host) break; end end - elseif admins then + elseif global_admins then log("error", "Global option 'admins' is not a list"); end end -- cgit v1.2.3