X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_swhois.cpp;h=eeb7a8d673b201479afc56d6d3af992df9d401ac;hb=ac7defcd3e52695dcf5e5150e9fe3e1624205e64;hp=a98c06c7509d8dedd3904a7ef994a21744abe130;hpb=74ee9af96639323d852a8b15be72ee9974e0a826;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp index a98c06c75..eeb7a8d67 100644 --- a/src/modules/m_swhois.cpp +++ b/src/modules/m_swhois.cpp @@ -36,7 +36,6 @@ class CommandSwhois : public Command CommandSwhois(Module* Creator) : Command(Creator,"SWHOIS", 2,2), swhois("swhois", Creator) { flags_needed = 'o'; syntax = " :"; - ServerInstance->Extensions.Register(&swhois); TRANSLATE3(TR_NICK, TR_TEXT, TR_END); } @@ -88,8 +87,13 @@ class ModuleSWhois : public Module public: ModuleSWhois() : cmd(this) + { + } + + void init() { ServerInstance->AddCommand(&cmd); + ServerInstance->Modules->AddService(cmd.swhois); Implementation eventlist[] = { I_OnWhoisLine, I_OnPostOper }; ServerInstance->Modules->Attach(eventlist, this, 2); }