summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
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;