diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-01-24 13:08:13 +0100 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-01-24 13:08:13 +0100 |
commit | f1f8173bb5ca5f5ce01ad92d0ccd309f232fc138 (patch) | |
tree | f9dc48385b78066d8da9fba546f979d6686f4be3 /src/xline.cpp | |
parent | 932e8d13f81c7c94a89dc3702f6d45bc185f5dcf (diff) |
Convert LocalUserList to an intrusively linked list
Diffstat (limited to 'src/xline.cpp')
-rw-r--r-- | src/xline.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index 63a64d6b9..d2fd9a5be 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -430,10 +430,10 @@ void XLineManager::ExpireLine(ContainerIter container, LookupIter item) // applies lines, removing clients and changing nicks etc as applicable void XLineManager::ApplyLines() { - LocalUserList::reverse_iterator u2 = ServerInstance->Users->local_users.rbegin(); - while (u2 != ServerInstance->Users->local_users.rend()) + LocalUserList& list = ServerInstance->Users->local_users; + for (LocalUserList::iterator j = list.begin(); j != list.end(); ++j) { - LocalUser* u = *u2++; + LocalUser* u = *j; // Don't ban people who are exempt. if (u->exempt) |