From ef88adc36d5c5214a15e653a6cfe827660bdfb0a Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Wed, 17 Jun 2026 15:03:07 +0100 Subject: Allow an event hook for after messages are sent to a client. --- src/clientprotocol.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/clientprotocol.cpp') diff --git a/src/clientprotocol.cpp b/src/clientprotocol.cpp index 519c6b21b..de3516707 100644 --- a/src/clientprotocol.cpp +++ b/src/clientprotocol.cpp @@ -175,3 +175,9 @@ void ClientProtocol::Event::GetMessagesForUser(LocalUser* user, MessageList& mes if (res == MOD_RES_DENY) messagelist.clear(); } + +void ClientProtocol::Event::PostSendMessagesToUser(LocalUser* user, const MessageList& messagelist) +{ + if (this->event) + this->event->Call(&EventHook::OnPostEventSend, user, *this, messagelist); +} -- cgit v1.3.1-10-gc9f91