summaryrefslogtreecommitdiff
path: root/modules/pseudoclients/chanserv.cpp
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-10-18 11:25:16 +0100
committerSadie Powell <sadie@witchery.services>2024-10-18 11:26:03 +0100
commite5602f956d0b43ecdc7d394dc5247bb3a63b7093 (patch)
tree5d5aad0319b45f6482ee1d3a0d2b33c0e435b9a5 /modules/pseudoclients/chanserv.cpp
parente704fa62666d92a5cbfd27be80bcf9ce6c1b7e0c (diff)
Fix marking channels as persistent on InspIRCd and UnrealIRCd.
Diffstat (limited to 'modules/pseudoclients/chanserv.cpp')
-rw-r--r--modules/pseudoclients/chanserv.cpp5
1 files changed, 4 insertions, 1 deletions
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;