]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/snomasks.cpp
Add skeleton functions for UID stuff.
[user/henk/code/inspircd.git] / src / snomasks.cpp
index ba6d3d7d53148b7d9b70760324bfc1d819dc273b..962e5a638c32fcaa0b8ec6417cb784f8ac3252a7 100644 (file)
@@ -58,7 +58,7 @@ void SnomaskManager::WriteToSnoMask(char letter, const std::string &text)
                for (std::vector<userrec*>::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());