diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/users.cpp | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/users.cpp b/src/users.cpp index b18806016..f455bb825 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -110,6 +110,33 @@ bool DoneClassesAndTypes(const char* tag) return true; } +bool userrec::ProcessNoticeMasks(const char *sm) +{ + bool adding = true; + const char *c = sm; + + while (c && *c) + { + switch (*c) + { + case '+': + adding = true; + break; + case '-': + adding = false; + break; + default: + if ((*c >= 'A') && (*c <= 'z')) + this->SetNoticeMask(*c, adding); + break; + } + + *c++; + } + + return true; +} + bool userrec::IsNoticeMaskSet(unsigned char sm) { return (snomasks[sm-65]); |