X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_helpop.cpp;h=3a5934a6781c6bf8773381ee3124399af774a64f;hb=94afde43b086f092bf8128d76d418cb63840e8eb;hp=a5430d7da77cbd064aa5e02f6bf031d29fb8dab5;hpb=7240c926c8e9aeacf95c2bd4803c8879963cca3f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp index a5430d7da..3a5934a67 100644 --- a/src/modules/m_helpop.cpp +++ b/src/modules/m_helpop.cpp @@ -2,7 +2,7 @@ * | Inspire Internet Relay Chat Daemon | * +------------------------------------+ * - * InspIRCd: (C) 2002-2007 InspIRCd Development Team + * InspIRCd: (C) 2002-2008 InspIRCd Development Team * See: http://www.inspircd.org/wiki/index.php/Credits * * This program is free but copyrighted software; see @@ -119,6 +119,8 @@ class ModuleHelpop : public Module throw ModuleException("Could not add new modes!"); mycommand = new CommandHelpop(ServerInstance); ServerInstance->AddCommand(mycommand); + Implementation eventlist[] = { I_OnRehash, I_OnWhois }; + ServerInstance->Modules->Attach(eventlist, this, 2); } virtual void ReadConfig() @@ -153,10 +155,6 @@ class ModuleHelpop : public Module } - void Implements(char* List) - { - List[I_OnRehash] = List[I_OnWhois] = 1; - } virtual void OnRehash(User* user, const std::string ¶meter) { @@ -174,7 +172,7 @@ class ModuleHelpop : public Module virtual ~ModuleHelpop() { ServerInstance->Modes->DelMode(ho); - DELETE(ho); + delete ho; } virtual Version GetVersion()