]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/cmd_kick.cpp
Just to mess with om's head, remove helperfuncs.h from everywhere
[user/henk/code/inspircd.git] / src / cmd_kick.cpp
index 5c03921b6bade53c0a726903003a78bf55e81937..07b3896894eec83de57d89fea6def9cb63ddd1d2 100644 (file)
 #include "inspircd_config.h"
 #include "users.h"
 #include "commands.h"
-#include "helperfuncs.h"
+
 #include "inspircd.h"
 #include "commands/cmd_kick.h"
 
-extern InspIRCd* ServerInstance;
+
 
 void cmd_kick::Handle (const char** parameters, int pcnt, userrec *user)
 {
@@ -35,7 +35,7 @@ void cmd_kick::Handle (const char** parameters, int pcnt, userrec *user)
                return;
        }
 
-       if ((IS_LOCAL(user)) && (!c->HasUser(user)) && (!is_uline(user->server)))
+       if ((IS_LOCAL(user)) && (!c->HasUser(user)) && (!ServerInstance->ULine(user->server)))
        {
                user->WriteServ( "442 %s %s :You're not on that channel!", user->nick, parameters[0]);
                return;