summaryrefslogtreecommitdiff
path: root/src/modules/m_swhois.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-24 13:28:07 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-04-24 13:28:07 +0000
commit5d407fb44c759524881712a80febb86b4506ddbf (patch)
treef0f426e645518a859ad25284f478854818a92da8 /src/modules/m_swhois.cpp
parent009c5b0562c280743033ea6ca2e673201a8e218c (diff)
delete operator tracking in debug mode (using a macro -- live with it.)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3904 e03df62e-2008-0410-955e-edbf42e46eb7
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()