From 75e144b55e761b663958599dc40dc8fd670445db Mon Sep 17 00:00:00 2001 From: Peter Powell Date: Sat, 29 Sep 2018 16:19:26 +0100 Subject: Fix the chanhistory module being inconsistent across servers. Closes #331. --- include/modules/server.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/modules') diff --git a/include/modules/server.h b/include/modules/server.h index 99bd2ee1d..54ea5d58c 100644 --- a/include/modules/server.h +++ b/include/modules/server.h @@ -29,6 +29,14 @@ class ServerEventListener : public Events::ModuleEventListener { } + /** Fired when a channel message is being broadcast across the network. + * @param channel The channel which is having a message sent to it. + * @param server The server which might have a message broadcast to it. + * @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 if no module handled the event. + */ + virtual ModResult OnBroadcastMessage(Channel* channel, const Server* server) { return MOD_RES_PASSTHRU; } + /** Fired when a server finishes burst * @param server Server that recently linked and finished burst */ -- cgit v1.2.3