From 8f3697e904e16890c230ae249dd9999e79e5f598 Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Sat, 4 Apr 2026 14:50:06 +0100 Subject: Pass a server reference to OnRouteMessage. --- modules/services.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/services.cpp') diff --git a/modules/services.cpp b/modules/services.cpp index c5ad7ad4b..6915de7ed 100644 --- a/modules/services.cpp +++ b/modules/services.cpp @@ -710,9 +710,9 @@ public: accountoverrideshold = tag->getBool("accountoverrideshold"); } - ModResult OnRouteMessage(const Channel* channel, const Server* server) override + ModResult OnRouteMessage(const Channel* channel, const Server& server) override { - if (!server->IsService() || !auspexext.Get(channel)) + if (!server.IsService() || !auspexext.Get(channel)) return MOD_RES_PASSTHRU; // Allow services to see messages in this channel even if not guarded. -- cgit v1.3.1-10-gc9f91