usermanager: Bump log level of incorrect config option warnings

vault/0.11
Matthew Wild 16 years ago
parent a638f49976
commit f83f25d08a
  1. 4
      core/usermanager.lua

@ -90,7 +90,7 @@ function new_default_provider(host)
if admin == jid then return true; end
end
elseif admins then
log("warn", "Option 'admins' for host '%s' is not a table", host);
log("error", "Option 'admins' for host '%s' is not a table", host);
end
return is_admin(jid); -- Test whether it's a global admin instead
end
@ -132,7 +132,7 @@ function is_admin(jid, host)
if admin == jid then return true; end
end
elseif admins then
log("warn", "Option 'admins' for host '%s' is not a table", host);
log("error", "Option 'admins' for host '%s' is not a table", host);
end
return nil;
end

Loading…
Cancel
Save