diff options
Diffstat (limited to 'src/modules/m_cban.cpp')
-rw-r--r-- | src/modules/m_cban.cpp | 6 |
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; |