X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_alltime.cpp;h=38ae4b254f7c7853ab30d99d7c0d5975e8ffa02b;hb=de4b1863536348520c6498e11d910acd050092a7;hp=76536ed3f5ee650d6f437f9f89e25d9208ef5bec;hpb=6c67546af64cec887bb716f666016eb93fde5d2b;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp index 76536ed3f..38ae4b254 100644 --- a/src/modules/m_alltime.cpp +++ b/src/modules/m_alltime.cpp @@ -60,7 +60,11 @@ class Modulealltime : public Module Modulealltime() : mycommand(this) { - ServerInstance->AddCommand(&mycommand); + } + + void init() + { + ServerInstance->Modules->AddService(mycommand); } virtual ~Modulealltime()