diff options
| author | 2026-04-04 14:50:06 +0100 | |
|---|---|---|
| committer | 2026-04-04 14:50:06 +0100 | |
| commit | 8f3697e904e16890c230ae249dd9999e79e5f598 (patch) | |
| tree | cc151f2cb3be08aa1713ef2aeda3d95c2162dfdd /modules/services.cpp | |
| parent | Add an easier way to get the local Server* object. (diff) | |
Pass a server reference to OnRouteMessage.
Diffstat (limited to 'modules/services.cpp')
| -rw-r--r-- | modules/services.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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. |
