summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_cban.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/modules/m_cban.cpp b/src/modules/m_cban.cpp
index 9c35f631c..0c0cedb4d 100644
--- a/src/modules/m_cban.cpp
+++ b/src/modules/m_cban.cpp
@@ -84,6 +84,14 @@ class cmd_cban : public command_t
if (pcnt == 1)
{
/* form: CBAN #channel removes a CBAN */
+ for (vector<CBan>::iterator myiter; myiter < cbans.end(); myiter++)
+ {
+ if (parameters[0] == (*myiter).GetName())
+ {
+ cbans.erase(myiter);
+ break;
+ }
+ }
}
else if (pcnt >= 2)
{