X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_alltime.cpp;h=d0331a99457f6c940af426c01850a8132e9c5adb;hb=623ba6ae49f8e1e0958f921fa178af8a95797c1c;hp=682e94cd8b2e3e445f1975111ddbcb7f1491c681;hpb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp index 682e94cd8..d0331a994 100644 --- a/src/modules/m_alltime.cpp +++ b/src/modules/m_alltime.cpp @@ -52,7 +52,6 @@ class CommandAlltime : public Command } }; - class Modulealltime : public Module { CommandAlltime mycommand; @@ -62,16 +61,12 @@ class Modulealltime : public Module { } - void init() - { - ServerInstance->AddCommand(&mycommand); - } - - virtual ~Modulealltime() + void init() CXX11_OVERRIDE { + ServerInstance->Modules->AddService(mycommand); } - virtual Version GetVersion() + Version GetVersion() CXX11_OVERRIDE { return Version("Display timestamps from all servers connected to the network", VF_OPTCOMMON | VF_VENDOR); }