aboutsummaryrefslogtreecommitdiff
path: root/src/clientprotocol.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2026-06-17 15:03:07 +0100
committerGravatar Sadie Powell2026-06-17 15:03:50 +0100
commitef88adc36d5c5214a15e653a6cfe827660bdfb0a (patch)
treefdea308b8f27b441aeee3645359aa3ff8a6f9645 /src/clientprotocol.cpp
parentAllow modules to control which clients receive an ISupport diff. (diff)
Allow an event hook for after messages are sent to a client.
Diffstat (limited to 'src/clientprotocol.cpp')
-rw-r--r--src/clientprotocol.cpp6
1 files changed, 6 insertions, 0 deletions
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);
+}