summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;