diff options
| author | 2020-11-10 23:14:21 +0000 | |
|---|---|---|
| committer | 2020-11-10 23:14:21 +0000 | |
| commit | ba3dd9cedcca2f3cc6781f09410e3cf2cf696e43 (patch) | |
| tree | 86fee6a331b262932973ac453169a1b566d60a2a /src/clientprotocol.cpp | |
| parent | Convert FIRST_MOD_RESULT_CUSTOM to a variadic function. (diff) | |
Convert FOREACH_MOD_CUSTOM to a variadic function.
Diffstat (limited to 'src/clientprotocol.cpp')
| -rw-r--r-- | src/clientprotocol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/clientprotocol.cpp b/src/clientprotocol.cpp index 8248f4ac4..af9054f3b 100644 --- a/src/clientprotocol.cpp +++ b/src/clientprotocol.cpp @@ -64,7 +64,7 @@ const ClientProtocol::SerializedMessage& ClientProtocol::Serializer::SerializeFo if (!msg.msginit_done) { msg.msginit_done = true; - FOREACH_MOD_CUSTOM(evprov, MessageTagProvider, OnPopulateTags, (msg)); + evprov.Call(&MessageTagProvider::OnPopulateTags, msg); } return msg.GetSerialized(Message::SerializedInfo(this, MakeTagWhitelist(user, msg.GetTags()))); } @@ -89,7 +89,7 @@ void ClientProtocol::Event::GetMessagesForUser(LocalUser* user, MessageList& mes if (!eventinit_done) { eventinit_done = true; - FOREACH_MOD_CUSTOM(*event, EventHook, OnEventInit, (*this)); + event->Call(&EventHook::OnEventInit, *this); } // Most of the time there's only a single message but in rare cases there are more |
