]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_nokicks.cpp
Remove debug stuff
[user/henk/code/inspircd.git] / src / modules / m_nokicks.cpp
index 216fa3ae21791a3114c709afa7c39ec6a118c39b..4cc269f1efb324fdb5efda2cb9161cd99c9f8395 100644 (file)
@@ -12,9 +12,6 @@
  */
 
 #include "inspircd.h"
-#include "users.h"
-#include "channels.h"
-#include "modules.h"
 
 /* $ModDesc: Provides support for unreal-style channel mode +Q */
 
@@ -23,7 +20,7 @@ class NoKicks : public ModeHandler
  public:
        NoKicks(InspIRCd* Instance) : ModeHandler(Instance, 'Q', 0, 0, false, MODETYPE_CHANNEL, false) { }
 
-       ModeAction OnModeChange(userrec* source, userrec* dest, chanrec* channel, std::string &parameter, bool adding)
+       ModeAction OnModeChange(User* source, User* dest, Channel* channel, std::string &parameter, bool adding)
        {
                if (adding)
                {
@@ -58,7 +55,7 @@ class ModuleNoKicks : public Module
        {
                
                nk = new NoKicks(ServerInstance);
-               if (!ServerInstance->AddMode(nk, 'Q'))
+               if (!ServerInstance->AddMode(nk))
                        throw ModuleException("Could not add new modes!");
        }
 
@@ -67,7 +64,7 @@ class ModuleNoKicks : public Module
                List[I_OnAccessCheck] = 1;
        }
 
-       virtual int OnAccessCheck(userrec* source,userrec* dest,chanrec* channel,int access_type)
+       virtual int OnAccessCheck(User* source,User* dest,Channel* channel,int access_type)
        {
                if (access_type == AC_KICK)
                {
@@ -102,4 +99,4 @@ class ModuleNoKicks : public Module
 };
 
 
-MODULE_INIT(ModuleNoKicks);
+MODULE_INIT(ModuleNoKicks)