aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_timedbans.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-08-16 08:50:02 +0000
committerGravatar brain2006-08-16 08:50:02 +0000
commit8f7d880d0ba747ae31e70476dbf7606df9da5a91 (patch)
treec7b3b288e747f03218c3dc2a86b40fa9a323a056 /src/modules/m_timedbans.cpp
parentBecause the iterator can be whacked (and the item) inside of SetBan, make copies (diff)
downloadinspircd++-8f7d880d0ba747ae31e70476dbf7606df9da5a91.tar.gz
inspircd++-8f7d880d0ba747ae31e70476dbf7606df9da5a91.tar.bz2
inspircd++-8f7d880d0ba747ae31e70476dbf7606df9da5a91.zip
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/m_timedbans.cpp')
-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
{