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/users.cpp | |
parent | 83db3dc06a44b50d8e25828e201a51edb4030d92 (diff) |
Add a typedef for LocalUserList
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index 92276d07c..7cfbdbc0c 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -539,7 +539,7 @@ CullResult User::cull() CullResult LocalUser::cull() { - std::vector<LocalUser*>::iterator x = find(ServerInstance->Users->local_users.begin(),ServerInstance->Users->local_users.end(),this); + LocalUserList::iterator x = find(ServerInstance->Users->local_users.begin(),ServerInstance->Users->local_users.end(),this); if (x != ServerInstance->Users->local_users.end()) ServerInstance->Users->local_users.erase(x); else @@ -1504,7 +1504,7 @@ void User::SendAll(const char* command, const char* text, ...) snprintf(formatbuffer,MAXBUF,":%s %s $* :%s", this->GetFullHost().c_str(), command, textbuffer); std::string fmt = formatbuffer; - for (std::vector<LocalUser*>::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++) + for (LocalUserList::const_iterator i = ServerInstance->Users->local_users.begin(); i != ServerInstance->Users->local_users.end(); i++) { if ((*i)->registered == REG_ALL) (*i)->Write(fmt); |