diff options
author | Peter Powell <petpow@saberuk.com> | 2018-09-29 16:19:26 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2018-10-01 12:34:47 +0100 |
commit | 75e144b55e761b663958599dc40dc8fd670445db (patch) | |
tree | bcee301fb5c4e190596d8deac95cc71a29352f8b /include/modules | |
parent | 36e701f4abfa6d8fc4f096be023a681a6b7cec2e (diff) |
Fix the chanhistory module being inconsistent across servers.
Closes #331.
Diffstat (limited to 'include/modules')
-rw-r--r-- | include/modules/server.h | 8 |
1 files changed, 8 insertions, 0 deletions
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 */ |