]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_sakick.cpp
Show a better warning when certtool/openssl are missing.
[user/henk/code/inspircd.git] / src / modules / m_sakick.cpp
index 3926a18e66c62c44fce5716a1764bc8c8cc110c1..7dfcd8904db3b7e8531059e270274a6eac547cb5 100644 (file)
@@ -39,7 +39,7 @@ class CommandSakick : public Command
                Channel* channel = ServerInstance->FindChan(parameters[0]);
                const char* reason = "";
 
-               if (dest && channel)
+               if ((dest) && (dest->registered == REG_ALL) && (channel))
                {
                        if (parameters.size() > 2)
                        {
@@ -105,7 +105,11 @@ class ModuleSakick : public Module
        ModuleSakick()
                : cmd(this)
        {
-               ServerInstance->AddCommand(&cmd);
+       }
+
+       void init()
+       {
+               ServerInstance->Modules->AddService(cmd);
        }
 
        virtual ~ModuleSakick()