+ LastLetter = mysnomask;
+
+ std::string desc = Description;
+ if (desc.empty())
+ desc = std::string("SNO-") + (char)tolower(mysnomask);
+ if (isupper(mysnomask))
+ desc = "REMOTE" + desc;
+ ModResult MOD_RESULT;
+ ServerInstance->Logs->Log("snomask", DEFAULT, "%s: %s", desc.c_str(), message.c_str());
+
+ FIRST_MOD_RESULT(OnSendSnotice, MOD_RESULT, (mysnomask, desc, message));
+
+ LastBlocked = (MOD_RESULT == MOD_RES_DENY);
+
+ if (!LastBlocked)
+ {
+ /* Only opers can receive snotices, so we iterate the oper list */
+ std::list<User*>::iterator i = ServerInstance->Users->all_opers.begin();
+
+ while (i != ServerInstance->Users->all_opers.end())
+ {
+ User* a = *i;
+ if (IS_LOCAL(a) && a->IsModeSet('s') && a->IsNoticeMaskSet(mysnomask) && !a->quitting)
+ {
+ a->WriteServ("NOTICE %s :*** %s: %s", a->nick.c_str(), desc.c_str(), message.c_str());
+ }
+
+ i++;
+ }
+ }