summaryrefslogtreecommitdiff
path: root/src/modules/m_cban.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 00:21:35 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 00:21:35 +0000
commit5593923eb9c0ec20cf76a4a93a450fd312d3063f (patch)
tree14b8eb0dd51efdcb4ff2379547b71fab24ec0df1 /src/modules/m_cban.cpp
parent57185ec037c9af9905c8291dd86f3552100f41d6 (diff)
c++ errors, ftw
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2611 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_cban.cpp')
-rw-r--r--src/modules/m_cban.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp
index 40ad9e090..4406a3c1a 100644
--- a/src/modules/m_cban.cpp
+++ b/src/modules/m_cban.cpp
@@ -53,7 +53,7 @@ class CBan
{
return expiry;
}
-}
+};
class cmd_cban : public command_t
{
@@ -100,7 +100,9 @@ class ModuleCBan : public Module
for (vector<CBan>::iterator iterate = cbans.begin(); iterate < cbans.end(); iterate++)
{
- if (chname == *iterate->GetName())
+ CBan *comp = (CBan *)*iterate; /* *mindsplode* */
+
+ if (chname == comp->GetName())
{
/* matches CBAN */
return 1;