Comparison

core/usermanager.lua @ 3031:421890f3f247

usermanager: Bump log level of incorrect config option warnings
author Matthew Wild <mwild1@gmail.com>
date Fri, 07 May 2010 21:43:37 +0100
parent 3030:2be7801474fb
child 3035:5584c928d1f7
comparison
equal deleted inserted replaced
3030:2be7801474fb 3031:421890f3f247
88 jid = jid_bare(jid); 88 jid = jid_bare(jid);
89 for _,admin in ipairs(admins) do 89 for _,admin in ipairs(admins) do
90 if admin == jid then return true; end 90 if admin == jid then return true; end
91 end 91 end
92 elseif admins then 92 elseif admins then
93 log("warn", "Option 'admins' for host '%s' is not a table", host); 93 log("error", "Option 'admins' for host '%s' is not a table", host);
94 end 94 end
95 return is_admin(jid); -- Test whether it's a global admin instead 95 return is_admin(jid); -- Test whether it's a global admin instead
96 end 96 end
97 return provider; 97 return provider;
98 end 98 end
130 jid = jid_bare(jid); 130 jid = jid_bare(jid);
131 for _,admin in ipairs(admins) do 131 for _,admin in ipairs(admins) do
132 if admin == jid then return true; end 132 if admin == jid then return true; end
133 end 133 end
134 elseif admins then 134 elseif admins then
135 log("warn", "Option 'admins' for host '%s' is not a table", host); 135 log("error", "Option 'admins' for host '%s' is not a table", host);
136 end 136 end
137 return nil; 137 return nil;
138 end 138 end
139 end 139 end
140 140