summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/chanserv/chanserv.cpp13
1 files changed, 8 insertions, 5 deletions
diff --git a/modules/chanserv/chanserv.cpp b/modules/chanserv/chanserv.cpp
index cc6fa4638..bd86410c8 100644
--- a/modules/chanserv/chanserv.cpp
+++ b/modules/chanserv/chanserv.cpp
@@ -116,13 +116,16 @@ public:
ChanServ = bi;
- spacesepstream(conf.GetModule(this).Get<const Anope::string>("defaults", "keeptopic peace securefounder signkick")).GetTokens(defaults);
+ spacesepstream(conf.GetModule(this).Get<const Anope::string>("defaults")).GetTokens(defaults);
if (defaults.empty())
{
- defaults.emplace_back("KEEPTOPIC");
- defaults.emplace_back("PEACE");
- defaults.emplace_back("SECUREFOUNDER");
- defaults.emplace_back("SIGNKICK");
+ defaults = {
+ "CS_KEEP_MODES",
+ "KEEPTOPIC",
+ "PEACE",
+ "SECUREFOUNDER",
+ "SIGNKICK",
+ };
}
else if (defaults[0].equals_ci("none"))
defaults.clear();