summaryrefslogtreecommitdiff
path: root/src/coremods/core_xline/cmd_gline.cpp
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2014-03-12 13:50:41 +0100
committerAttila Molnar <attilamolnar@hush.com>2014-03-12 13:50:41 +0100
commit7aab18ae35770fa38aee887a3696d779516c7cb0 (patch)
tree77955f71f250a0f2784a9b6dd63c7a3bd860163d /src/coremods/core_xline/cmd_gline.cpp
parent9b17aecc0d711b1345416c0510adb270399960a9 (diff)
Deduplicate and move the *MatchesEveryone() functions to core_xline
Diffstat (limited to 'src/coremods/core_xline/cmd_gline.cpp')
-rw-r--r--src/coremods/core_xline/cmd_gline.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/coremods/core_xline/cmd_gline.cpp b/src/coremods/core_xline/cmd_gline.cpp
index 44b2192b5..3f042c366 100644
--- a/src/coremods/core_xline/cmd_gline.cpp
+++ b/src/coremods/core_xline/cmd_gline.cpp
@@ -55,7 +55,8 @@ CmdResult CommandGline::Handle (const std::vector<std::string>& parameters, User
return CMD_FAILURE;
}
- if (ServerInstance->HostMatchesEveryone(ih.first+"@"+ih.second,user))
+ InsaneBan::IPHostMatcher matcher;
+ if (InsaneBan::MatchesEveryone(ih.first+"@"+ih.second, matcher, user, "G", "hostmasks"))
return CMD_FAILURE;
else if (target.find('!') != std::string::npos)