diff options
Diffstat (limited to 'src/cmd_gline.cpp')
-rw-r--r-- | src/cmd_gline.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cmd_gline.cpp b/src/cmd_gline.cpp index afec3889c..f208d40bf 100644 --- a/src/cmd_gline.cpp +++ b/src/cmd_gline.cpp @@ -29,7 +29,8 @@ CmdResult cmd_gline::Handle (const char** parameters, int pcnt, userrec *user) { if (pcnt >= 3) { - if (ServerInstance->HostMatchesEveryone(parameters[0],user)) + IdentHostPair ih = ServerInstance->XLines->IdentSplit(parameters[0]); + if (ServerInstance->HostMatchesEveryone(ih.first+"@"+ih.second,user)) return CMD_FAILURE; if (!strchr(parameters[0],'@')) |