diff options
| author | 2020-11-10 22:23:26 +0000 | |
|---|---|---|
| committer | 2020-11-10 22:23:26 +0000 | |
| commit | c7690513cdf317f9221cedf4892facdd100ef74d (patch) | |
| tree | 68ef30e051e99dcd2d9855e410806f2630e86f55 /src/clientprotocol.cpp | |
| parent | Only use libc++ when building with AppleClang. (diff) | |
Convert FIRST_MOD_RESULT_CUSTOM to a variadic function.
Diffstat (limited to 'src/clientprotocol.cpp')
| -rw-r--r-- | src/clientprotocol.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/clientprotocol.cpp b/src/clientprotocol.cpp index 666aa9af6..8248f4ac4 100644 --- a/src/clientprotocol.cpp +++ b/src/clientprotocol.cpp @@ -99,8 +99,7 @@ void ClientProtocol::Event::GetMessagesForUser(LocalUser* user, MessageList& mes messagelist = *initialmsglist; // Let modules modify the message list - ModResult res; - FIRST_MOD_RESULT_CUSTOM(*event, EventHook, OnPreEventSend, res, (user, *this, messagelist)); + ModResult res = event->FirstResult(&EventHook::OnPreEventSend, user, *this, messagelist); if (res == MOD_RES_DENY) messagelist.clear(); } |
