summaryrefslogtreecommitdiff
path: root/src/modules/m_swhois.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_swhois.cpp')
-rw-r--r--src/modules/m_swhois.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/m_swhois.cpp b/src/modules/m_swhois.cpp
index a4d947102..98ed007d0 100644
--- a/src/modules/m_swhois.cpp
+++ b/src/modules/m_swhois.cpp
@@ -56,7 +56,7 @@ class cmd_swhois : public command_t
WriteOpers("*** %s used SWHOIS to set %s's extra whois from '%s' to '%s'", user->nick, dest->nick, text->c_str(), line.c_str());
dest->Shrink("swhois");
- delete text;
+ DELETE(text);
}
else if(!Srv->IsUlined(user->server))
{
@@ -87,7 +87,7 @@ class ModuleSWhois : public Module
void OnRehash(const std::string &parameter)
{
- delete Conf;
+ DELETE(Conf);
Conf = new ConfigReader();
}
@@ -138,7 +138,7 @@ class ModuleSWhois : public Module
{
std::string* swhois = (std::string*)field;
user->Shrink("swhois");
- delete swhois;
+ DELETE(swhois);
}
}
@@ -153,7 +153,7 @@ class ModuleSWhois : public Module
{
std::string* swhois = (std::string*)field;
user->Shrink("swhois");
- delete swhois;
+ DELETE(swhois);
}
}
}
@@ -195,7 +195,7 @@ class ModuleSWhois : public Module
if(std::string* old = (std::string*)user->GetExt("swhois"))
{
user->Shrink("swhois");
- delete old;
+ DELETE(old);
}
std::string* text = new std::string(swhois);
@@ -209,7 +209,7 @@ class ModuleSWhois : public Module
virtual ~ModuleSWhois()
{
- delete Conf;
+ DELETE(Conf);
}
virtual Version GetVersion()