]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_kline.cpp
Whoops, forgot some stuff for when GECOS was moved to position 10 in the UID command...
[user/henk/code/inspircd.git] / src / cmd_kline.cpp
index 90ddca55c454aa97a4f709305fca7c8f772403e2..ec31228ed28cccc23a4fe096a588ed2999dac75f 100644 (file)
@@ -12,9 +12,6 @@
  */
 
 #include "inspircd.h"
-#include "configreader.h"
-#include "users.h"
-#include "modules.h"
 #include "xline.h"
 #include "commands/cmd_kline.h"
 
@@ -29,7 +26,8 @@ CmdResult cmd_kline::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],'@'))