summaryrefslogtreecommitdiff
path: root/modules/database/db_old.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-12-15 02:44:53 -0500
committerAdam <Adam@anope.org>2012-12-15 02:44:53 -0500
commitfe7fcc2dc372c95bde081c99aa255f974b2f02a8 (patch)
tree553e89b704738173cd69dfff740a7c3fe54f230b /modules/database/db_old.cpp
parentdcd34d37287adb6aa03d32edd17fc8015b52feb8 (diff)
Check for NOJOIN being < 0 but restricted on in db_old
Diffstat (limited to 'modules/database/db_old.cpp')
-rw-r--r--modules/database/db_old.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/modules/database/db_old.cpp b/modules/database/db_old.cpp
index ea899edd6..521b58cff 100644
--- a/modules/database/db_old.cpp
+++ b/modules/database/db_old.cpp
@@ -774,6 +774,9 @@ static void LoadChannels()
if (level == ACCESS_INVALID)
level = ACCESS_FOUNDER;
+ if (j == 10 && level < 0) // NOJOIN
+ ci->UnsetFlag(CI_RESTRICTED); // If CSDefRestricted was enabled this can happen
+
ci->SetLevel(GetLevelName(j), level);
}