]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_knock.cpp
m_spanningtree Remove unneeded #includes
[user/henk/code/inspircd.git] / src / modules / m_knock.cpp
index ef3b617cda1b3822883e7d38c3701902f9837f59..8d2aa4543065be26e7b410ef41007c6d664cd37d 100644 (file)
@@ -99,9 +99,8 @@ class ModuleKnock : public Module
 
        void init()
        {
-               if (!ServerInstance->Modes->AddMode(&kn))
-                       throw ModuleException("Could not add new modes!");
-               ServerInstance->AddCommand(&cmd);
+               ServerInstance->Modules->AddService(kn);
+               ServerInstance->Modules->AddService(cmd);
 
                ServerInstance->Modules->Attach(I_OnRehash, this);
                OnRehash(NULL);