From 826aebdb72feceeb1acdf670f46f2975a11083bc Mon Sep 17 00:00:00 2001 From: w00t Date: Thu, 22 Dec 2005 11:04:18 +0000 Subject: Maybe done removing of CBans? git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2631 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cban.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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::iterator myiter; myiter < cbans.end(); myiter++) + { + if (parameters[0] == (*myiter).GetName()) + { + cbans.erase(myiter); + break; + } + } } else if (pcnt >= 2) { -- cgit v1.2.3