summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-25 17:15:45 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-25 17:15:45 +0000
commit43a207eeb069046832a42757fbd7076d293b755b (patch)
tree419d3733df02e99d2cbadeabb48a312e0704155b /src
parente17a512c8dbd16a6e1e8101205a45e9a7d094708 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_filter.h6
1 files changed, 5 insertions, 1 deletions
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()));