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, 4 insertions, 2 deletions
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<CBan>::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;