Comparison

core/usermanager.lua @ 3419:79e08dc3fd37

usermanager: Fix two nil global accesses
author Matthew Wild <mwild1@gmail.com>
date Sat, 31 Jul 2010 11:30:16 +0100
parent 3395:e736f68c1047
child 3466:4add4f9ca409
comparison
equal deleted inserted replaced
3418:e75af8e6af54 3419:79e08dc3fd37
105 if admin == jid then 105 if admin == jid then
106 is_admin = true; 106 is_admin = true;
107 break; 107 break;
108 end 108 end
109 end 109 end
110 elseif admins then 110 elseif host_admins then
111 log("error", "Option 'admins' for host '%s' is not a list", host); 111 log("error", "Option 'admins' for host '%s' is not a list", host);
112 end 112 end
113 end 113 end
114 114
115 if not is_admin and global_admins then 115 if not is_admin and global_admins then
118 if admin == jid then 118 if admin == jid then
119 is_admin = true; 119 is_admin = true;
120 break; 120 break;
121 end 121 end
122 end 122 end
123 elseif admins then 123 elseif global_admins then
124 log("error", "Global option 'admins' is not a list"); 124 log("error", "Global option 'admins' is not a list");
125 end 125 end
126 end 126 end
127 127
128 -- Still not an admin, check with auth provider 128 -- Still not an admin, check with auth provider