summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-11-21 00:15:13 +0100
committerattilamolnar <attilamolnar@hush.com>2012-11-29 23:41:22 +0100
commita589577b68cb84bc877ecdd4c0f9cb84a1581ddd (patch)
tree37a4f52f9bcac855d7fa2198f991a2fc919ea738 /include
parent83db3dc06a44b50d8e25828e201a51edb4030d92 (diff)
Add a typedef for LocalUserList
Diffstat (limited to 'include')
-rw-r--r--include/typedefs.h4
-rw-r--r--include/usermanager.h2
2 files changed, 5 insertions, 1 deletions
diff --git a/include/typedefs.h b/include/typedefs.h
index da2775152..250bec5c9 100644
--- a/include/typedefs.h
+++ b/include/typedefs.h
@@ -64,6 +64,10 @@ struct ResourceRecord;
typedef nspace::hash_map<std::string, Channel*, nspace::hash<std::string>, irc::StrHashComp> chan_hash;
#endif
+/** A list holding local users, this is the type of UserManager::local_users
+ */
+typedef std::vector<LocalUser*> LocalUserList;
+
/** A list of failed port bindings, used for informational purposes on startup */
typedef std::vector<std::pair<std::string, std::string> > FailedPortList;
diff --git a/include/usermanager.h b/include/usermanager.h
index 92b40b373..be6c6b6bb 100644
--- a/include/usermanager.h
+++ b/include/usermanager.h
@@ -54,7 +54,7 @@ class CoreExport UserManager
/** Local client list, a vector containing only local clients
*/
- std::vector<LocalUser*> local_users;
+ LocalUserList local_users;
/** Oper list, a vector containing all local and remote opered users
*/