summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-16 08:50:02 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-16 08:50:02 +0000
commit8f7d880d0ba747ae31e70476dbf7606df9da5a91 (patch)
treec7b3b288e747f03218c3dc2a86b40fa9a323a056 /src/modules
parent39f81682b1450b05e156c34a1426baa73bb9c67b (diff)
free() REQUIRES casts to free const char*'s :<
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4922 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_timedbans.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index 61c0abaa3..400ec098e 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -185,8 +185,9 @@ class ModuleTimedBans : public Module
Event rmode((char *)&n, NULL, "send_mode");
rmode.Send(ServerInstance);
DELETE(temp);
- free(setban[0]);
- free(setban[2]);
+ // i hate free.
+ free((char*)setban[0]);
+ free((char*)setban[2]);
}
else
{