aboutsummaryrefslogtreecommitdiff
path: root/src/modules/m_permchannels.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2022-03-11 14:27:32 +0000
committerGravatar Sadie Powell2022-03-11 14:52:56 +0000
commit2d329701db1d5c0361c018e088eb82c457f8ec7c (patch)
tree7897c5fcdf7eecb8c96bf31c030043d76574fa23 /src/modules/m_permchannels.cpp
parentRefactor the opermodes module. (diff)
parentUse UCHAR_MAX instead of raw sizes in channames. (diff)
Merge branch 'insp3' into master.
Diffstat (limited to 'src/modules/m_permchannels.cpp')
-rw-r--r--src/modules/m_permchannels.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/modules/m_permchannels.cpp b/src/modules/m_permchannels.cpp
index 288451927..5cc5d33ff 100644
--- a/src/modules/m_permchannels.cpp
+++ b/src/modules/m_permchannels.cpp
@@ -52,6 +52,11 @@ public:
return MODEACTION_DENY;
}
+
+ void SetOperOnly(bool value)
+ {
+ oper = value;
+ }
};
// Not in a class due to circular dependency hell.
@@ -183,6 +188,7 @@ public:
auto tag = ServerInstance->Config->ConfValue("permchanneldb");
permchannelsconf = tag->getString("filename");
save_listmodes = tag->getBool("listmodes", true);
+ p.SetOperOnly(tag->getBool("operonly", true));
SetInterval(tag->getDuration("saveperiod", 5));
if (!permchannelsconf.empty())