* The default implementation does nothing.
* @param msg Message to be populated with tags.
*/
- virtual void OnClientProtocolPopulateTags(ClientProtocol::Message& msg)
+ virtual void OnPopulateTags(ClientProtocol::Message& msg)
{
}
return cap.get(user);
}
- void OnClientProtocolPopulateTags(ClientProtocol::Message& msg) CXX11_OVERRIDE
+ void OnPopulateTags(ClientProtocol::Message& msg) CXX11_OVERRIDE
{
T& tag = static_cast<T&>(*this);
const std::string* const val = tag.GetValue(msg);
if (!msg.msginit_done)
{
msg.msginit_done = true;
- FOREACH_MOD_CUSTOM(evprov, MessageTagProvider, OnClientProtocolPopulateTags, (msg));
+ FOREACH_MOD_CUSTOM(evprov, MessageTagProvider, OnPopulateTags, (msg));
}
return msg.GetSerialized(Message::SerializedInfo(this, MakeTagWhitelist(user, msg.GetTags())));
}
{
}
- void OnClientProtocolPopulateTags(ClientProtocol::Message& msg) CXX11_OVERRIDE
+ void OnPopulateTags(ClientProtocol::Message& msg) CXX11_OVERRIDE
{
User* const user = msg.GetSourceUser();
if (user && user->IsModeSet(botmode))