diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-10 20:38:26 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-04-10 20:38:26 +0000 |
commit | ecb76110fda5f1b126ae718ae44df2f9312d46c4 (patch) | |
tree | b3215028ba22065efff2ca76d88553d9812e9cce /include | |
parent | e7f08977f2686ceebb7a27ab56dd686a5b976e77 (diff) |
A few more typedefs defined and put into use.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3866 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r-- | include/channels.h | 6 | ||||
-rw-r--r-- | include/users.h | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/include/channels.h b/include/channels.h index 2445d1188..76b604668 100644 --- a/include/channels.h +++ b/include/channels.h @@ -87,6 +87,11 @@ typedef std::vector<InviteItem> InviteList; */ typedef std::map<userrec*,userrec*> CUList; +/** Shorthand for CUList::iterator + */ +typedef CUList::iterator CUListIter; +typedef CUList::const_iterator CUListConstIter; + /** A list of custom modes parameters on a channel */ typedef std::map<char,char*> CustomModeList; @@ -286,4 +291,3 @@ void kick_channel(userrec *src,userrec *user, chanrec *Ptr, char* reason); void server_kick_channel(userrec* user, chanrec* Ptr, char* reason, bool triggerevents); #endif - diff --git a/include/users.h b/include/users.h index a5cba44b6..81ab1c844 100644 --- a/include/users.h +++ b/include/users.h @@ -109,6 +109,10 @@ typedef std::vector<Invited> InvitedList; */ typedef std::vector<ConnectClass> ClassVector; +/** Typedef for the list of user-channel records for a user + */ +typedef std::vector<ucrec*> UserChanList; + /** Holds all information about a user * This class stores all information about a user connected to the irc server. Everything about a * connection is stored here primarily, from the user's socket ID (file descriptor) through to the @@ -160,7 +164,7 @@ class userrec : public connection */ char modebits; - std::vector<ucrec*> chans; + UserChanList chans; /** The server the user is connected to. */ |