diff options
author | attilamolnar <attilamolnar@hush.com> | 2012-11-21 00:15:13 +0100 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2012-11-29 23:41:22 +0100 |
commit | a589577b68cb84bc877ecdd4c0f9cb84a1581ddd (patch) | |
tree | 37a4f52f9bcac855d7fa2198f991a2fc919ea738 /src/xline.cpp | |
parent | 83db3dc06a44b50d8e25828e201a51edb4030d92 (diff) |
Add a typedef for LocalUserList
Diffstat (limited to 'src/xline.cpp')
-rw-r--r-- | src/xline.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index 12948959b..6501a7f6d 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -156,7 +156,7 @@ void XLineManager::CheckELines() if (ELines.empty()) return; - for (std::vector<LocalUser*>::const_iterator u2 = ServerInstance->Users->local_users.begin(); u2 != ServerInstance->Users->local_users.end(); u2++) + for (LocalUserList::const_iterator u2 = ServerInstance->Users->local_users.begin(); u2 != ServerInstance->Users->local_users.end(); u2++) { User* u = (User*)(*u2); @@ -321,7 +321,7 @@ bool XLineManager::DelLine(const char* hostmask, const std::string &type, User* void ELine::Unset() { /* remove exempt from everyone and force recheck after deleting eline */ - for (std::vector<LocalUser*>::const_iterator u2 = ServerInstance->Users->local_users.begin(); u2 != ServerInstance->Users->local_users.end(); u2++) + for (LocalUserList::const_iterator u2 = ServerInstance->Users->local_users.begin(); u2 != ServerInstance->Users->local_users.end(); u2++) { User* u = (User*)(*u2); u->exempt = false; @@ -425,7 +425,7 @@ void XLineManager::ExpireLine(ContainerIter container, LookupIter item) // applies lines, removing clients and changing nicks etc as applicable void XLineManager::ApplyLines() { - std::vector<LocalUser*>::reverse_iterator u2 = ServerInstance->Users->local_users.rbegin(); + LocalUserList::reverse_iterator u2 = ServerInstance->Users->local_users.rbegin(); while (u2 != ServerInstance->Users->local_users.rend()) { User* u = *u2++; @@ -674,7 +674,7 @@ bool GLine::Matches(const std::string &str) void ELine::OnAdd() { /* When adding one eline, only check the one eline */ - for (std::vector<LocalUser*>::const_iterator u2 = ServerInstance->Users->local_users.begin(); u2 != ServerInstance->Users->local_users.end(); u2++) + for (LocalUserList::const_iterator u2 = ServerInstance->Users->local_users.begin(); u2 != ServerInstance->Users->local_users.end(); u2++) { User* u = (User*)(*u2); if (this->Matches(u)) |