From e5602f956d0b43ecdc7d394dc5247bb3a63b7093 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 18 Oct 2024 11:25:16 +0100 Subject: Fix marking channels as persistent on InspIRCd and UnrealIRCd. --- modules/pseudoclients/chanserv.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/pseudoclients/chanserv.cpp b/modules/pseudoclients/chanserv.cpp index e89af3def..2e23a35c3 100644 --- a/modules/pseudoclients/chanserv.cpp +++ b/modules/pseudoclients/chanserv.cpp @@ -378,8 +378,11 @@ class ChanServCore : public Module, public ChanServService return EVENT_CONTINUE; } - void OnPostInit() anope_override + void OnUplinkSync() anope_override { + // We need to do this when the uplink is synced as we may not know if + // the mode exists before then on some IRCds (e.g. InspIRCd). + if (!persist) return; -- cgit