From ccc088d946797131d612af8eb4bc7b7319615257 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Tue, 4 Jun 2024 22:39:41 +0100 Subject: Log a user out fully when their nick gets suspended. Closes #409. --- modules/commands/ns_suspend.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/modules/commands/ns_suspend.cpp b/modules/commands/ns_suspend.cpp index 0d801ab7d..2beb9abaf 100644 --- a/modules/commands/ns_suspend.cpp +++ b/modules/commands/ns_suspend.cpp @@ -127,6 +127,8 @@ class CommandNSSuspend : public Command User *u2 = User::Find(na2->nick, true); if (u2) { + IRCD->SendLogout(u2); + u2->RemoveMode(source.service, "REGISTERED"); u2->Logout(); if (nickserv) nickserv->Collide(u2, na2); -- cgit From 81056072576994e6f4c7ed6133bd42440b10face Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sun, 23 Jun 2024 13:50:50 +0100 Subject: Fix the default config for channel suspensions. --- data/chanserv.example.conf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/data/chanserv.example.conf b/data/chanserv.example.conf index bba989708..087bfa750 100644 --- a/data/chanserv.example.conf +++ b/data/chanserv.example.conf @@ -109,10 +109,9 @@ module /* * The length of time before a channel registration expires. * - * This directive is optional, but recommended. - * If not set, the default is 14 days. + * This directive is optional. If not set, the default is never. */ - expire = 14d + #expire = 90d /* * The maximum number of entries on a channel's access list. -- cgit