mirror of
https://github.com/anope/anope.git
synced 2026-07-04 17:33:12 +02:00
Use std::tr1::unordered_map for a few of the larger maps
This commit is contained in:
@@ -198,7 +198,7 @@ class BahamutIRCdProto : public IRCDProto
|
||||
if (!u)
|
||||
{
|
||||
/* No user (this akill was just added), and contains nick and/or realname. Find users that match and ban them */
|
||||
for (Anope::insensitive_map<User *>::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
if (x->manager->Check(it->second, x))
|
||||
this->SendAkill(it->second, x);
|
||||
return;
|
||||
|
||||
@@ -127,7 +127,7 @@ class HybridProto : public IRCDProto
|
||||
* No user (this akill was just added), and contains nick and/or realname.
|
||||
* Find users that match and ban them.
|
||||
*/
|
||||
for (Anope::insensitive_map<User *>::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
if (x->manager->Check(it->second, x))
|
||||
this->SendAkill(it->second, x);
|
||||
|
||||
|
||||
@@ -151,7 +151,7 @@ class InspIRCdTS6Proto : public IRCDProto
|
||||
if (!u)
|
||||
{
|
||||
/* No user (this akill was just added), and contains nick and/or realname. Find users that match and ban them */
|
||||
for (Anope::insensitive_map<User *>::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
if (x->manager->Check(it->second, x))
|
||||
this->SendAkill(it->second, x);
|
||||
return;
|
||||
|
||||
@@ -116,7 +116,7 @@ class InspIRCdProto : public IRCDProto
|
||||
if (!u)
|
||||
{
|
||||
/* No user (this akill was just added), and contains nick and/or realname. Find users that match and ban them */
|
||||
for (Anope::insensitive_map<User *>::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
if (x->manager->Check(it->second, x))
|
||||
this->SendAkill(it->second, x);
|
||||
return;
|
||||
|
||||
@@ -534,7 +534,7 @@ class ProtoInspIRCd : public Module
|
||||
void OnServerSync(Server *s) anope_override
|
||||
{
|
||||
if (nickserv)
|
||||
for (Anope::insensitive_map<User *>::iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
{
|
||||
User *u = it->second;
|
||||
if (u->server == s && !u->IsIdentified())
|
||||
|
||||
@@ -630,7 +630,7 @@ class ProtoInspIRCd : public Module
|
||||
void OnServerSync(Server *s) anope_override
|
||||
{
|
||||
if (nickserv)
|
||||
for (Anope::insensitive_map<User *>::iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
{
|
||||
User *u = it->second;
|
||||
if (u->server == s && !u->IsIdentified())
|
||||
|
||||
@@ -107,7 +107,7 @@ class PlexusProto : public IRCDProto
|
||||
if (!u)
|
||||
{
|
||||
/* No user (this akill was just added), and contains nick and/or realname. Find users that match and ban them */
|
||||
for (Anope::insensitive_map<User *>::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
if (x->manager->Check(it->second, x))
|
||||
this->SendAkill(it->second, x);
|
||||
return;
|
||||
@@ -757,7 +757,7 @@ class ProtoPlexus : public Module
|
||||
void OnServerSync(Server *s) anope_override
|
||||
{
|
||||
if (nickserv)
|
||||
for (Anope::insensitive_map<User *>::iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
{
|
||||
User *u = it->second;
|
||||
if (u->server == s && !u->IsIdentified())
|
||||
|
||||
@@ -97,7 +97,7 @@ class RatboxProto : public IRCDProto
|
||||
if (!u)
|
||||
{
|
||||
/* No user (this akill was just added), and contains nick and/or realname. Find users that match and ban them */
|
||||
for (Anope::insensitive_map<User *>::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
if (x->manager->Check(it->second, x))
|
||||
this->SendAkill(it->second, x);
|
||||
return;
|
||||
@@ -631,7 +631,7 @@ class ProtoRatbox : public Module
|
||||
void OnServerSync(Server *s) anope_override
|
||||
{
|
||||
if (nickserv)
|
||||
for (Anope::insensitive_map<User *>::iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
{
|
||||
User *u = it->second;
|
||||
if (u->server == s && !u->IsIdentified())
|
||||
|
||||
@@ -88,7 +88,7 @@ class UnrealIRCdProto : public IRCDProto
|
||||
if (!u)
|
||||
{
|
||||
/* No user (this akill was just added), and contains nick and/or realname. Find users that match and ban them */
|
||||
for (Anope::insensitive_map<User *>::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
for (user_map::const_iterator it = UserListByNick.begin(); it != UserListByNick.end(); ++it)
|
||||
if (x->manager->Check(it->second, x))
|
||||
this->SendAkill(it->second, x);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user