From 8982ea4cf5adc493340e602e2c3290210c7bf110 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 30 Dec 2006 22:11:13 +0000 Subject: If a user has a QUIT message matching a KILL type filter, we cant KILL someone whos already quitting (what will they care) so treat it as BLOCK and filter their quit. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6185 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_filter.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules') diff --git a/src/modules/m_filter.h b/src/modules/m_filter.h index ec95431fa..ba52ce70b 100644 --- a/src/modules/m_filter.h +++ b/src/modules/m_filter.h @@ -254,7 +254,10 @@ int FilterBase::OnPreCommand(const std::string &command, const char** parameters params[item] = parameters[item]; params[replacepoint] = "Reason filtered"; - if (f->action == "block") + /* We're blocking, OR theyre quitting and its a KILL action + * (we cant kill someone whos already quitting, so filter them anyway) + */ + if ((f->action == "block") || (((!parting) && (f->action == "kill")))) { c->Handle(params, pcnt, user); return 1; -- cgit v1.2.3