diff options
| author | 2024-09-19 15:53:54 +0100 | |
|---|---|---|
| committer | 2024-09-19 15:53:54 +0100 | |
| commit | 4f9830ff2e0d27c8308226bbe2dabe834087f04a (patch) | |
| tree | c930fd7a10f25f2b7594a4a3cd2cc4bc8a0bb1f1 /include/modules/server.h | |
| parent | Add some extra methods to the Server class. (diff) | |
Make the server protocol APIs use a reference instead of a pointer.
Diffstat (limited to 'include/modules/server.h')
| -rw-r--r-- | include/modules/server.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/modules/server.h b/include/modules/server.h index 59ddc55d2..412327341 100644 --- a/include/modules/server.h +++ b/include/modules/server.h @@ -52,18 +52,18 @@ public: /** Fired when a server has linked to the network. * @param server Server that recently linked. */ - virtual void OnServerLink(const Server* server) { } + virtual void OnServerLink(const Server& server) { } /** Fired when a server has finished bursting. * @param server Server that recently finished bursting. */ - virtual void OnServerBurst(const Server* server) { } + virtual void OnServerBurst(const Server& server) { } /** Fired when a server splits * @param server Server that split * @param error Whether the server split because of an error. */ - virtual void OnServerSplit(const Server* server, bool error) { } + virtual void OnServerSplit(const Server& server, bool error) { } }; class ServerProtocol::MessageEventListener @@ -87,7 +87,7 @@ public: * @param name The name of the command which was sent. * @param tags The tags which will be sent with the message. */ - virtual void OnBuildServerMessage(const Server* source, const char* name, ClientProtocol::TagMap& tags) { } + virtual void OnBuildServerMessage(const Server& source, const char* name, ClientProtocol::TagMap& tags) { } }; class ServerProtocol::RouteEventListener |
