]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_testnet.cpp
Fix mistakenly using Clang instead of GCC on older FreeBSD versions.
[user/henk/code/inspircd.git] / src / modules / m_testnet.cpp
index c2644dbff0149993aff974c194430f1f81f3ddc1..401766d8a2eaa358f7833545da6f15e0cc3eac6c 100644 (file)
@@ -213,10 +213,14 @@ class ModuleTest : public Module
        CommandTest cmd;
  public:
        ModuleTest() : cmd(this)
+       {
+       }
+
+       void init()
        {
                if (!strstr(ServerInstance->Config->ServerName.c_str(), ".test"))
                        throw ModuleException("Don't load modules without reading their descriptions!");
-               ServerInstance->AddCommand(&cmd);
+               ServerInstance->Modules->AddService(cmd);
        }
 
        Version GetVersion()