From 43a207eeb069046832a42757fbd7076d293b755b Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 25 Jan 2007 17:15:45 +0000 Subject: For the filter GLINE action, ban *@IP, so that they cant change their ident and it'll still get unresolved hosts git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6440 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_filter.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/modules/m_filter.h') diff --git a/src/modules/m_filter.h b/src/modules/m_filter.h index 2889091f7..896c75dc2 100644 --- a/src/modules/m_filter.h +++ b/src/modules/m_filter.h @@ -284,7 +284,11 @@ int FilterBase::OnPreCommand(const std::string &command, const char** parameters } if (f->action == "gline") { - if (ServerInstance->XLines->add_gline(f->gline_time, ServerInstance->Config->ServerName, f->reason.c_str(), user->MakeHostIP())) + /* Note: We gline *@IP so that if their host doesnt resolve the gline still applies. */ + std::string wild = "*@"; + wild.append(user->GetIPString()); + + if (ServerInstance->XLines->add_gline(f->gline_time, ServerInstance->Config->ServerName, f->reason.c_str(), wild.c_str())) { ServerInstance->XLines->apply_lines(APPLY_GLINES); FOREACH_MOD(I_OnAddGLine,OnAddGLine(f->gline_time, NULL, f->reason, user->MakeHostIP())); -- cgit v1.2.3