]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - include/users.h
Added userrec::modebits - fast way of checking if user has +swi rather than an icky...
[user/henk/code/inspircd.git] / include / users.h
index 71563abfa9354f482d8a3979f3cae52b3ed2ae62..e7ad4b9d939a8ac6204b7cd31c40bf3071b92b4c 100644 (file)
@@ -150,8 +150,15 @@ class userrec : public connection
         * an optional + character.
         */
        char modes[54];
+
+       /** This contains a bitmask of the RFC modes +swi,
+        * which can be used for fast lookup when iterating all the users.
+        * It is maintained by the mode parser and matches the character
+        * modes stored in 'modes'.
+        */
+       char modebits;
        
-       std::vector<ucrec> chans;
+       std::vector<ucrec*> chans;
        
        /** The server the user is connected to.
         */