]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/clientprotocol.cpp
Improve the robustness of the DNSBL module.
[user/henk/code/inspircd.git] / src / clientprotocol.cpp
index 212d65d6bef590cebc87b30d70e73948ad94b344..666aa9af6706cd2ebc96807d9569f1a71ba41e2a 100644 (file)
@@ -1,7 +1,8 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2016 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2018-2020 Sadie Powell <sadie@witchery.services>
+ *   Copyright (C) 2018 Attila Molnar <attilamolnar@hush.com>
  *
  * This file is part of InspIRCd.  InspIRCd is free software: you can
  * redistribute it and/or modify it under the terms of the GNU General Public
@@ -21,7 +22,7 @@
 
 ClientProtocol::Serializer::Serializer(Module* mod, const char* Name)
        : DataProvider(mod, std::string("serializer/") + Name)
-       , evprov(mod, "event/messagetag")
+       , evprov(mod)
 {
 }
 
@@ -63,7 +64,7 @@ const ClientProtocol::SerializedMessage& ClientProtocol::Serializer::SerializeFo
        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())));
 }