From: brain Date: Sat, 28 Oct 2006 11:41:38 +0000 (+0000) Subject: Unknown change here X-Git-Tag: v2.0.23~6814 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=ae23edb3981c3252a66d7afcc35af359d5f7e116;p=user%2Fhenk%2Fcode%2Finspircd.git Unknown change here git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5559 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/users.cpp b/src/users.cpp index fd0a6f8dc..7d2d8549a 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -98,6 +98,24 @@ std::string userrec::ProcessNoticeMasks(const char *sm) case '-': adding = false; break; + case '*': + for (unsigned char d = 'A'; d <= 'z'; d++) + { + if (ServerInstance->SNO->IsEnabled(d)) + { + if ((!IsNoticeMaskSet(d) && adding) || (IsNoticeMaskSet(d) && !adding)) + { + if ((oldadding != adding) || (!output.length())) + output += (adding ? '+' : '-'); + + this->SetNoticeMask(d, adding); + + output += d; + } + } + oldadding = adding; + } + break; default: if ((*c >= 'A') && (*c <= 'z') && (ServerInstance->SNO->IsEnabled(*c))) {