summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-11-05 22:17:47 -0500
committerAdam <Adam@anope.org>2012-11-06 11:02:12 -0500
commit53b2bdfe5e157a9e5ca5d08873edebcd04511ae1 (patch)
treef94c8603ffe475405ea668c629eddd7c8ba0891e /src/users.cpp
parent27ab6a686cb271ea8eae7a243906af5bebeb83d7 (diff)
Use std::tr1::unordered_map for a few of the larger maps
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 187e55808..684817d2e 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -22,8 +22,7 @@
#include "opertype.h"
#include "extern.h"
-Anope::insensitive_map<User *> UserListByNick;
-Anope::map<User *> UserListByUID;
+user_map UserListByNick, UserListByUID;
int32_t opcnt = 0;
uint32_t usercnt = 0, maxusercnt = 0;
@@ -856,13 +855,13 @@ User *finduser(const Anope::string &nick)
{
if (isdigit(nick[0]) && ircdproto->RequiresID)
{
- Anope::map<User *>::iterator it = UserListByUID.find(nick);
+ user_map::iterator it = UserListByUID.find(nick);
if (it != UserListByUID.end())
return it->second;
}
else
{
- Anope::insensitive_map<User *>::iterator it = UserListByNick.find(nick);
+ user_map::iterator it = UserListByNick.find(nick);
if (it != UserListByNick.end())
return it->second;
}