summaryrefslogtreecommitdiff
path: root/src/core/cs_set.c
diff options
context:
space:
mode:
authorAdam <Adam@drink-coca-cola.info>2010-05-17 20:33:28 -0400
committerAdam <Adam@anope.org>2010-06-18 21:03:41 -0400
commit17ab4104005cc5098d9152e6c90d54977222dd06 (patch)
treed8ffffedcf5537292a4f19faeb5f1e7796969132 /src/core/cs_set.c
parent2a22d9c2fdf6978858055f1143af0ec40e417424 (diff)
Removed process_numlist and having to mark everything as "in use" and constantly checking it. Replaced with a better system.
Diffstat (limited to 'src/core/cs_set.c')
-rw-r--r--src/core/cs_set.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/cs_set.c b/src/core/cs_set.c
index 0a8d6ac5b..75850f453 100644
--- a/src/core/cs_set.c
+++ b/src/core/cs_set.c
@@ -466,11 +466,10 @@ class CommandCSSet : public Command
{
ChanAccess *access;
- for (unsigned i = 0; i < ci->GetAccessCount(); i++)
+ for (unsigned i = ci->GetAccessCount() - 1; 0 <= i; --i)
{
access = ci->GetAccess(i);
- if (!access->in_use)
- continue;
+
/* This will probably cause wrong levels to be set, but hey,
* it's better than losing it altogether.
*/
@@ -490,9 +489,6 @@ class CommandCSSet : public Command
}
}
- /* The above may have set an access entry to not be in use, this will clean that up. */
- ci->CleanAccess();
-
reset_levels(ci);
ci->SetFlag(CI_XOP);
}