1
0
mirror of https://github.com/anope/anope.git synced 2026-07-08 19:43:13 +02:00

Added cs_mode, rewrote the old list mode code, and added CIDR support

This commit is contained in:
Adam
2010-11-20 21:45:30 -05:00
parent a85112172d
commit 246f44b988
42 changed files with 1251 additions and 1291 deletions
+7 -3
View File
@@ -63,12 +63,16 @@ class CommandCSForbid : public Command
ci->forbidby = u->nick;
ci->forbidreason = reason;
if ((c = findchan(ci->name)))
if ((c = ci->c))
{
/* Before banning everyone, it might be prudent to clear +e and +I lists..
* to prevent ppl from rejoining.. ~ Viper */
c->ClearExcepts();
c->ClearInvites();
std::pair<Channel::ModeList::iterator, Channel::ModeList::iterator> modes = c->GetModeList(CMODE_EXCEPT);
for (; modes.first != modes.second; ++modes.first)
c->RemoveMode(NULL, CMODE_EXCEPT, modes.first->second);
modes = c->GetModeList(CMODE_INVITEOVERRIDE);
for (; modes.first != modes.second; ++modes.first)
c->RemoveMode(NULL, CMODE_INVITEOVERRIDE, modes.first->second);
for (CUserList::iterator it = c->users.begin(), it_end = c->users.end(); it != it_end; )
{