diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-29 18:26:55 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-29 18:26:55 +0000 |
commit | b9e99da4dafd836e995970216835cefe3716a01a (patch) | |
tree | 3e1a53384d20e350adf6a23ac964b9429e735e6b /include/users.h | |
parent | e7aac9ee56d7bfff83287e3068ac18f60d43a1f9 (diff) |
Snomask support cometh! and it leave a sticky white mess all over the floor :(
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5062 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/users.h')
-rw-r--r-- | include/users.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/users.h b/include/users.h index 83ea9bf3f..731cb785a 100644 --- a/include/users.h +++ b/include/users.h @@ -46,6 +46,7 @@ enum UserModes { UM_WALLOPS = 'w'-65, UM_INVISIBLE = 'i'-65, UM_OPERATOR = 'o'-65, + UM_SNOMASK = 'n'-65, }; enum RegistrationState { @@ -372,9 +373,11 @@ class userrec : public connection /** Process a snomask modifier string, e.g. +abc-de * @param sm A sequence of notice mask characters - * @return True if the notice masks were successfully applied + * @return The cleaned mode sequence which can be output, + * e.g. in the above example if masks c and e are not + * valid, this function will return +ab-d */ - bool userrec::ProcessNoticeMasks(const char *sm); + std::string userrec::ProcessNoticeMasks(const char *sm); /** Returns true if a notice mask is set * @param sm A notice mask character to check |