summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2024-10-18 11:41:53 +0100
committerSadie Powell <sadie@witchery.services>2024-10-18 11:41:53 +0100
commit934a13c21f74b794bb9ff767fff6ae67b80bff48 (patch)
tree81d4a3dc0741ce1b0b807e246254eb7c1bdcb1a6
parentde11a19e037c9d527094002b72b77130b9077c27 (diff)
parente5602f956d0b43ecdc7d394dc5247bb3a63b7093 (diff)
Merge branch '2.0' into 2.1.
-rw-r--r--modules/chanserv/chanserv.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/modules/chanserv/chanserv.cpp b/modules/chanserv/chanserv.cpp
index f04b69dab..aa064dc5a 100644
--- a/modules/chanserv/chanserv.cpp
+++ b/modules/chanserv/chanserv.cpp
@@ -382,8 +382,11 @@ public:
return EVENT_CONTINUE;
}
- void OnPostInit() override
+ void OnUplinkSync() 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;