From eb2aaf22ed927d0de7bbc739103e49eb0586b323 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Mon, 1 Jan 2024 17:32:37 +0000 Subject: Fix a copy/paste error in the default channel settings. --- data/chanserv.example.conf | 4 ++-- modules/pseudoclients/chanserv.cpp | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/data/chanserv.example.conf b/data/chanserv.example.conf index cce4456ac..bba989708 100644 --- a/data/chanserv.example.conf +++ b/data/chanserv.example.conf @@ -93,8 +93,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, cs_secure, 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 keeptopic, peace, cs_secure, + * securefounder, and signkick. If you really want no defaults, use "none" by itself as the option. */ defaults = "keeptopic peace cs_secure securefounder signkick" diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp index 0809a25b3..b720247f9 100644 --- a/modules/pseudoclients/chanserv.cpp +++ b/modules/pseudoclients/chanserv.cpp @@ -109,10 +109,11 @@ class ChanServCore : public Module, public ChanServService ChanServ = bi; - spacesepstream(conf->GetModule(this)->Get("defaults", "greet fantasy")).GetTokens(defaults); + spacesepstream(conf->GetModule(this)->Get("defaults", "keeptopic peace cs_secure securefounder signkick")).GetTokens(defaults); if (defaults.empty()) { defaults.push_back("KEEPTOPIC"); + defaults.push_back("PEACE"); defaults.push_back("CS_SECURE"); defaults.push_back("SECUREFOUNDER"); defaults.push_back("SIGNKICK"); -- cgit