aboutsummaryrefslogtreecommitdiffstats
path: root/include/modules/server.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-09-19 15:53:54 +0100
committerGravatar Sadie Powell2024-09-19 15:53:54 +0100
commit4f9830ff2e0d27c8308226bbe2dabe834087f04a (patch)
treec930fd7a10f25f2b7594a4a3cd2cc4bc8a0bb1f1 /include/modules/server.h
parentAdd 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.h8
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