]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_silence.cpp
Only valid targets for encap are now server ids
[user/henk/code/inspircd.git] / src / modules / m_silence.cpp
index 703a17b43813e598c912ddc3416c4242ec70f052..9361b9a67f1c032df15fd7853f9c10a1d798ffdc 100644 (file)
@@ -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 &parameter)
        {
@@ -160,7 +156,7 @@ class ModuleSilence : public Module
                user->GetExt("silence_list", sl);
                if (sl)
                {
-                       DELETE(sl);
+                       delete sl;
                        user->Shrink("silence_list");
                }
        }