]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_testnet.cpp
Attach to events and register services in init()
[user/henk/code/inspircd.git] / src / modules / m_testnet.cpp
index c2644dbff0149993aff974c194430f1f81f3ddc1..1dcb73f913607ad7c3cbedae5df28e1b53272c84 100644 (file)
@@ -213,6 +213,10 @@ 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!");