diff options
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 |
