summaryrefslogtreecommitdiff
path: root/src/modules/m_silence.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_silence.cpp')
-rw-r--r--src/modules/m_silence.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/m_silence.cpp b/src/modules/m_silence.cpp
index 4beda4423..dea78c526 100644
--- a/src/modules/m_silence.cpp
+++ b/src/modules/m_silence.cpp
@@ -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");
}
}