X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fsnomasks.cpp;h=e447cd637f1059d7e7ac7e55b09d117105ec8858;hb=2e28b264afa667923b6c17d88ffcb12315309936;hp=ba6d3d7d53148b7d9b70760324bfc1d819dc273b;hpb=890e00d5956ff31fd95a6bb667f7918e2e97af3a;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/snomasks.cpp b/src/snomasks.cpp index ba6d3d7d5..e447cd637 100644 --- a/src/snomasks.cpp +++ b/src/snomasks.cpp @@ -13,8 +13,6 @@ #include "inspircd.h" #include -#include "configreader.h" -#include "users.h" #include "snomasks.h" SnomaskManager::SnomaskManager(InspIRCd* Instance) : ServerInstance(Instance) @@ -58,7 +56,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());