diff options
| author | 2026-06-17 15:37:26 +0100 | |
|---|---|---|
| committer | 2026-06-17 15:39:58 +0100 | |
| commit | 33ab04fef638ab7fb6ec2eeea983b58c7e96c02f (patch) | |
| tree | 6bd4da6a42df3deff3a7f955f56fa22c88f6a6f4 /src/clientprotocol.cpp | |
| parent | Merge branch 'insp4' into master. (diff) | |
| parent | Allow an event hook for after messages are sent to a client. (diff) | |
Merge branch 'insp4' into master.
Diffstat (limited to 'src/clientprotocol.cpp')
| -rw-r--r-- | src/clientprotocol.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/clientprotocol.cpp b/src/clientprotocol.cpp index b73cbce1d..1414fdad2 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); +} |
