From d8a073bda0d070cb7fbc8f8e83f17c235312eaf2 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 22 Dec 2005 00:27:17 +0000 Subject: Changed to use [] git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2612 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cban.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp index 4406a3c1a..f05641121 100644 --- a/src/modules/m_cban.cpp +++ b/src/modules/m_cban.cpp @@ -98,11 +98,9 @@ class ModuleCBan : public Module std::string chname = cname; - for (vector::iterator iterate = cbans.begin(); iterate < cbans.end(); iterate++) + for (unsigned int a = 0; a < cbans.size(); a++) { - CBan *comp = (CBan *)*iterate; /* *mindsplode* */ - - if (chname == comp->GetName()) + if (chname == cbans[a].GetName()) { /* matches CBAN */ return 1; -- cgit v1.2.3