aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_cban.cpp
diff options
context:
space:
mode:
authorGravatar w00t2005-12-22 11:04:18 +0000
committerGravatar w00t2005-12-22 11:04:18 +0000
commit826aebdb72feceeb1acdf670f46f2975a11083bc (patch)
treec68c9a11541651855c3e088f7ad7654d7ecf3e73 /src/modules/m_cban.cpp
parentFix (diff)
downloadinspircd++-826aebdb72feceeb1acdf670f46f2975a11083bc.tar.gz
inspircd++-826aebdb72feceeb1acdf670f46f2975a11083bc.tar.bz2
inspircd++-826aebdb72feceeb1acdf670f46f2975a11083bc.zip
Maybe done removing of CBans?
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2631 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_cban.cpp')
-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)
{