]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_silence.cpp
Mode +b stuff, probably wont work yet
[user/henk/code/inspircd.git] / src / modules / m_silence.cpp
index 4beda442365f63230d11b5cb5bb201d7d32923b3..d921545fbd838c7e58ea53ec4d514531bb0f802f 100644 (file)
@@ -36,7 +36,7 @@ typedef std::vector<std::string> silencelist;
 class cmd_silence : public command_t
 {
  public:
-       cmd_silence() : command_t("SILENCE", 0, 1)
+       cmd_silence() : command_t("SILENCE", 0, 0)
        {
                this->source = "m_silence.so";
        }
@@ -91,7 +91,7 @@ class cmd_silence : public command_t
                                        {
                                                // 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");
                                        }
                                }
@@ -153,7 +153,7 @@ class ModuleSilence : public Module
                silencelist* sl = (silencelist*)user->GetExt("silence_list");
                if (sl)
                {
-                       delete sl;
+                       DELETE(sl);
                        user->Shrink("silence_list");
                }
        }