summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2017-12-20 20:54:38 +0000
committerGitHub <noreply@github.com>2017-12-20 20:54:38 +0000
commit63345df39b6fdd44b462ec162dd6c4d99518b39c (patch)
tree1b46ee5aecc1fe10690549982a89d7aec02fb0fd /src
parent51d9f02be92236f0b9c50682c22a2254d228509a (diff)
parentec2679aaafb95892a7c5abbd462c4a1d30285471 (diff)
Merge pull request #1444 from B00mX0r/master+missingsno
Add snomask alert on m_filter quit/part G-Line
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_filter.cpp1
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();