diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 13:21:35 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-09 13:21:35 +0000 |
commit | c330b24501fc56516fef098428889a0a526e706a (patch) | |
tree | 83a64774409c8c6808dd4c6a2587ca89229e9e97 /include/users.h | |
parent | 68da120812b1e593c76ea75d0d591f47b6a4f402 (diff) |
Added userrec::modebits - fast way of checking if user has +swi rather than an icky strchr
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3588 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/users.h')
-rw-r--r-- | include/users.h | 7 |
1 files changed, 7 insertions, 0 deletions
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; |