diff options
| author | 2026-04-04 14:50:06 +0100 | |
|---|---|---|
| committer | 2026-04-04 14:50:06 +0100 | |
| commit | 8f3697e904e16890c230ae249dd9999e79e5f598 (patch) | |
| tree | cc151f2cb3be08aa1713ef2aeda3d95c2162dfdd /include | |
| parent | Add an easier way to get the local Server* object. (diff) | |
Pass a server reference to OnRouteMessage.
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules/server.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/modules/server.h b/include/modules/server.h index 31eda8ee1..d795db526 100644 --- a/include/modules/server.h +++ b/include/modules/server.h @@ -98,7 +98,7 @@ public: * @return Either MOD_RES_ALLOW to always send the message to the server, MOD_RES_DENY to never * send the message to the server, or MOD_RES_PASSTHRU to not handle the event. */ - virtual ModResult OnRouteMessage(const Channel* channel, const Server* server) { return MOD_RES_PASSTHRU; } + virtual ModResult OnRouteMessage(const Channel* channel, const Server& server) { return MOD_RES_PASSTHRU; } }; |
