From 2631eb2e48b121aa61af88ac68c59478e93f484b Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 15 Jan 2011 16:29:17 -0500 Subject: Made CA_SET always be accessable, even if db-converter messes up levels (cherry picked from commit a4ded88e85efaa1523cb64aca3f0029a0d91a61a) --- src/chanserv.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/chanserv.cpp b/src/chanserv.cpp index 67cbf2f47..9b3f7f596 100644 --- a/src/chanserv.cpp +++ b/src/chanserv.cpp @@ -539,6 +539,14 @@ int check_access(User *user, ChannelInfo *ci, int what) level = get_access(user, ci); 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; -- cgit