diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-22 11:04:18 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-22 11:04:18 +0000 |
commit | 826aebdb72feceeb1acdf670f46f2975a11083bc (patch) | |
tree | c68c9a11541651855c3e088f7ad7654d7ecf3e73 /src/modules/m_cban.cpp | |
parent | 6718f3c47875a8537bdb83d790c7c3111b660531 (diff) |
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.cpp | 8 |
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) { |