summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/chanserv.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/chanserv.cpp b/src/chanserv.cpp
index ef203c064..0898da62f 100644
--- a/src/chanserv.cpp
+++ b/src/chanserv.cpp
@@ -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;