summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 00:27:17 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-22 00:27:17 +0000
commitd8a073bda0d070cb7fbc8f8e83f17c235312eaf2 (patch)
treed19cedddddc035f1f1f432e08a2bbc52487b4aad /src/modules
parent5593923eb9c0ec20cf76a4a93a450fd312d3063f (diff)
Changed to use []
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2612 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_cban.cpp6
1 files 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<CBan>::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;