]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_ircv3_msgid.cpp
Add support for blocking tag messages with the deaf mode.
[user/henk/code/inspircd.git] / src / modules / m_ircv3_msgid.cpp
index 62750190cdfbf9c30e8de0435261026bde732ecc..ca32f28a4e31e2cfcac6293ebee94278cb68c3cd 100644 (file)
@@ -1,8 +1,7 @@
 /*
  * InspIRCd -- Internet Relay Chat Daemon
  *
- *   Copyright (C) 2019 Sadie Powell <sadie@witchery.services>
- *   Copyright (C) 2016 Attila Molnar <attilamolnar@hush.com>
+ *   Copyright (C) 2019-2020 Sadie Powell <sadie@witchery.services>
  *
  * 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
 
 
 #include "inspircd.h"
-#include "modules/cap.h"
 #include "modules/ctctags.h"
 
 class MsgIdTag : public ClientProtocol::MessageTagProvider
 {
  private:
-       Cap::Reference ctctagcap;
+       CTCTags::CapReference ctctagcap;
 
  public:
        MsgIdTag(Module* mod)
                : ClientProtocol::MessageTagProvider(mod)
-               , ctctagcap(mod, "message-tags")
+               , ctctagcap(mod)
        {
        }
 
@@ -114,7 +112,7 @@ class ModuleMsgId
 
        Version GetVersion() CXX11_OVERRIDE
        {
-               return Version("Provides the msgid IRCv3 tag", VF_VENDOR);
+               return Version("Provides support for the IRCv3 Message IDs specification.", VF_VENDOR);
        }
 };