]> 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 294bc1e1f358b42f3fecf78c242ffeff7d88961e..e7ad4b9d939a8ac6204b7cd31c40bf3071b92b4c 100644 (file)
@@ -150,6 +150,13 @@ 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;