diff options
author | B00mX0r <b00mx0r@aureus.pw> | 2017-12-19 13:06:22 -0800 |
---|---|---|
committer | B00mX0r <b00mx0r@aureus.pw> | 2017-12-19 13:06:22 -0800 |
commit | ec2679aaafb95892a7c5abbd462c4a1d30285471 (patch) | |
tree | 597363daefbc6f249197fec3fe2e2243536a84d0 /src | |
parent | 4f3aaaef9f8b111452ffa4498aaefeae3fcb6675 (diff) |
Add snomask alert on m_filter quit/part G-Line
Resolves an oversight of #1264
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_filter.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp index adf3afe69..a672bc9f6 100644 --- a/src/modules/m_filter.cpp +++ b/src/modules/m_filter.cpp @@ -440,6 +440,7 @@ ModResult ModuleFilter::OnPreCommand(std::string &command, std::vector<std::stri { /* Note: We gline *@IP so that if their host doesnt resolve the gline still applies. */ GLine* gl = new GLine(ServerInstance->Time(), f->gline_time, ServerInstance->Config->ServerName.c_str(), f->reason.c_str(), "*", user->GetIPString()); + ServerInstance->SNO->WriteGlobalSno('a', "FILTER: " + user->nick + " had their " + command + " message filtered and was G-Lined: " + f->reason); if (ServerInstance->XLines->AddLine(gl,NULL)) { ServerInstance->XLines->ApplyLines(); |