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";
}
{
// 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");
}
}
silencelist* sl = (silencelist*)user->GetExt("silence_list");
if (sl)
{
- delete sl;
+ DELETE(sl);
user->Shrink("silence_list");
}
}