]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
CPU Usage percent in stats z! yay!
[user/henk/code/inspircd.git] / include / users.h
index d82b3d2cc2a805cc89c8268630ce563f63651416..429606344d6fe87d15e203568d0d5ba01598b3be 100644 (file)
@@ -146,7 +146,8 @@ typedef std::vector<ConnectClass> ClassVector;
 
 /** Typedef for the list of user-channel records for a user
  */
-typedef std::vector<ucrec*> UserChanList;
+typedef std::map<chanrec*, char> UserChanList;
+typedef UserChanList::iterator UCListIter;
 
 /** Holds all information about a user
  * This class stores all information about a user connected to the irc server. Everything about a
@@ -348,6 +349,14 @@ class userrec : public connection
         */
        long recvqmax;
 
+       /** This is true if the user matched an exception when they connected to the ircd.
+        * It isnt valid after this point, and you should not attempt to do anything with it
+        * after this point, because the eline might be removed at a later time, and/or no
+        * longer be applicable to this user. It is only used to save doing the eline lookup
+        * twice (instead we do it once and set this value).
+        */
+       bool exempt;
+
        /** Default constructor
         * @throw Nothing at present
         */