summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThatOneRoadie <thatoneroadie+github@gmail.com>2016-12-05 14:06:30 -0700
committerPeter Powell <petpow@saberuk.com>2017-12-03 16:14:14 +0000
commit6cfa00e862ed9615438c0a1c6faef12f228e46ef (patch)
tree6e1dd711747184d6a7eeb0d06ac990d7b39714a0
parent217752e4935090a8e40bed5ffdfff4cc545ae984 (diff)
Send a snotice when m_filter kills or G-Lines a client.
Closes #1264.
-rw-r--r--src/modules/m_filter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/modules/m_filter.cpp b/src/modules/m_filter.cpp
index 27c511c16..adf3afe69 100644
--- a/src/modules/m_filter.cpp
+++ b/src/modules/m_filter.cpp
@@ -360,11 +360,13 @@ ModResult ModuleFilter::OnUserPreMessage(User* user, void* dest, int target_type
}
else if (f->action == FA_KILL)
{
+ ServerInstance->SNO->WriteGlobalSno('a', "FILTER: " + user->nick + " had their message filtered and was killed, target was " + target + ": " + f->reason);
ServerInstance->Users->QuitUser(user, "Filtered: " + f->reason);
}
else if (f->action == FA_GLINE)
{
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 message filtered and was G-Lined, target was " + target + ": " + f->reason);
if (ServerInstance->XLines->AddLine(gl,NULL))
{
ServerInstance->XLines->ApplyLines();