diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/mode.h | 6 | ||||
-rw-r--r-- | include/users.h | 7 |
2 files changed, 13 insertions, 0 deletions
diff --git a/include/mode.h b/include/mode.h index 973e9c22b..54b4aa97e 100644 --- a/include/mode.h +++ b/include/mode.h @@ -29,6 +29,12 @@ #include "channels.h" #include "ctables.h" +enum UserModeBits { + UM_INVISIBLE = 1, + UM_SERVERNOTICE = 2, + UM_WALLOPS = 3 +}; + class ModeParser { private: diff --git a/include/users.h b/include/users.h index 294bc1e1f..e7ad4b9d9 100644 --- a/include/users.h +++ b/include/users.h @@ -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; |