1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Sync the chanserv defaults between the code and config.

This commit is contained in:
Sadie Powell
2025-03-09 14:31:50 +00:00
parent badcf31499
commit 1e8ac58bb4
2 changed files with 10 additions and 7 deletions
+2 -2
View File
@@ -102,8 +102,8 @@ module
* to be a registered nick, otherwise the channel will be dropped.
* - none: No defaults
*
* This directive is optional, if left blank, the options will default to keeptopic, peace,
* securefounder, and signkick. If you really want no defaults, use "none" by itself as the option.
* This directive is optional, if left blank, the options will default to cs_keep_modes, keeptopic, peace,
* persist, securefounder, and signkick. If you really want no defaults, use "none" by itself as the option.
*/
defaults = "cs_keep_modes keeptopic peace persist securefounder signkick"
+8 -5
View File
@@ -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();