From 5593923eb9c0ec20cf76a4a93a450fd312d3063f Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 22 Dec 2005 00:21:35 +0000 Subject: c++ errors, ftw git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2611 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cban.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/modules/m_cban.cpp') 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::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; -- cgit v1.2.3