X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsnomasks.cpp;h=962e5a638c32fcaa0b8ec6417cb784f8ac3252a7;hb=107595610061e05871094ef6161a287c1dd53737;hp=ba6d3d7d53148b7d9b70760324bfc1d819dc273b;hpb=f2acdbc3820f0f4f5ef76a0a64e73d2a320df91f;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/snomasks.cpp b/src/snomasks.cpp index ba6d3d7d5..962e5a638 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -58,7 +58,7 @@ void SnomaskManager::WriteToSnoMask(char letter, const std::string &text) for (std::vector::iterator i = ServerInstance->all_opers.begin(); i != ServerInstance->all_opers.end(); i++) { userrec* a = *i; - if (IS_LOCAL(a) && a->modes[UM_SERVERNOTICE] && a->modes[UM_SNOMASK] && a->IsNoticeMaskSet(n->first)) + if (IS_LOCAL(a) && a->IsModeSet('s') && a->IsModeSet('n') && a->IsNoticeMaskSet(n->first)) { /* send server notices to all with +ns */ a->WriteServ("NOTICE %s :*** %s: %s",a->nick, n->second.c_str(), text.c_str());