1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 19:23:12 +02:00

Made CA_SET always be accessable, even if db-converter messes up levels

This commit is contained in:
Adam
2011-01-15 16:29:17 -05:00
parent 1b6aab0cd7
commit a4ded88e85
+8
View File
@@ -499,6 +499,14 @@ int check_access(User *user, ChannelInfo *ci, int what)
level = u_access ? u_access->level : 0;
limit = ci->levels[what];
// Set should never be disabled, if it is it is db-converter screwup
// This all needs rewritten anyway...
if (what == CA_SET && limit == ACCESS_INVALID)
{
ci->levels[what] = ACCESS_FOUNDER;
limit = ACCESS_FOUNDER;
}
/* Resetting the last used time */
if (level > 0)
ci->last_used = Anope::CurTime;