From 6cfa00e862ed9615438c0a1c6faef12f228e46ef Mon Sep 17 00:00:00 2001 From: ThatOneRoadie Date: Mon, 5 Dec 2016 14:06:30 -0700 Subject: Send a snotice when m_filter kills or G-Lines a client. Closes #1264. --- src/modules/m_filter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/modules') 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(); -- cgit v1.2.3