diff options
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/users.cpp b/src/users.cpp index 27eb0a1f6..7be073bd6 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -98,8 +98,12 @@ std::string userrec::ProcessNoticeMasks(const char *sm) const char *c = sm; std::string output = ""; + ServerInstance->Log(DEBUG,"Process notice masks"); + while (c && *c) { + ServerInstance->Log(DEBUG,"Process notice mask %c",*c); + switch (*c) { case '+': @@ -111,7 +115,7 @@ std::string userrec::ProcessNoticeMasks(const char *sm) default: if ((*c >= 'A') && (*c <= 'z') && (ServerInstance->SNO->IsEnabled(*c))) { - if ((IsNoticeMaskSet(*c) && adding) || (!IsNoticeMaskSet(*c) && !adding)) + if ((!IsNoticeMaskSet(*c) && adding) || (IsNoticeMaskSet(*c) && !adding)) { if ((oldadding != adding) || (sm == c)) output += (adding ? '+' : '-'); @@ -287,6 +291,7 @@ userrec::userrec(InspIRCd* Instance) : ServerInstance(Instance) invites.clear(); chans.resize(MAXCHANS); memset(modes,0,sizeof(modes)); + memset(snomasks,0,sizeof(snomasks)); for (unsigned int n = 0; n < MAXCHANS; n++) { |