Skip to content

Commit

Permalink
Implement support for the CLIENTTAGDENY token.
Browse files Browse the repository at this point in the history
  • Loading branch information
SadieCat committed May 13, 2020
1 parent 4c94f5d commit 6312d80
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/modules/m_ircv3_ctctags.cpp
Expand Up @@ -329,6 +329,12 @@ class ModuleIRCv3CTCTags
c2ctags.allowclientonlytags = ServerInstance->Config->ConfValue("ctctags")->getBool("allowclientonlytags", true);
}

void On005Numeric(std::map<std::string, std::string>& tokens) CXX11_OVERRIDE
{
if (!c2ctags.allowclientonlytags)
tokens["CLIENTTAGDENY"] = "*";
}

ModResult OnUserPreMessage(User* user, const MessageTarget& target, MessageDetails& details) CXX11_OVERRIDE
{
return CopyClientTags(details.tags_in, details.tags_out);
Expand Down

0 comments on commit 6312d80

Please sign in to comment.