usermanager: Fix two nil global accesses

vault/0.11
Matthew Wild 16 years ago
parent 29db7ce7a6
commit 42d53ec2cf
  1. 4
      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

Loading…
Cancel
Save