X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Fm_silence.cpp;h=9361b9a67f1c032df15fd7853f9c10a1d798ffdc;hb=ccd95e668a3bcbd26c4cd2984cdd8809347f9815;hp=703a17b43813e598c912ddc3416c4242ec70f052;hpb=cadc11999ee28545e9beb92de116c151832af5c4;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp index 703a17b43..9361b9a67 100644 --- a/src/modules/m_silence.cpp +++ b/src/modules/m_silence.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 @@ -32,7 +32,7 @@ class CommandSilence : public Command TRANSLATE2(TR_TEXT, TR_END); } - CmdResult Handle (const char** parameters, int pcnt, User *user) + CmdResult Handle (const char* const* parameters, int pcnt, User *user) { if (!pcnt) { @@ -83,7 +83,7 @@ class CommandSilence : public Command { // tidy up -- if a user's list is empty, theres no use having it // hanging around in the user record. - DELETE(sl); + delete sl; user->Shrink("silence_list"); } } @@ -139,10 +139,6 @@ class ModuleSilence : public Module ServerInstance->Modules->Attach(eventlist, this, 5); } - void Implements(char* List) - { - List[I_OnRehash] = List[I_OnUserQuit] = List[I_On005Numeric] = List[I_OnUserPreNotice] = List[I_OnUserPreMessage] = 1; - } virtual void OnRehash(User* user, const std::string ¶meter) { @@ -160,7 +156,7 @@ class ModuleSilence : public Module user->GetExt("silence_list", sl); if (sl) { - DELETE(sl); + delete sl; user->Shrink("silence_list"); } }