From 10ef0fde2e1832f0684ae142a582cb5f032bfe6a Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 23 Jul 2007 18:06:57 +0000 Subject: Tidyup a bunch of stuff that was using userrec::modes directly rather than userrec::IsModeSet. Same for chanrec. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7506 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/snomasks.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/snomasks.cpp') 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()); -- cgit v1.3.1-10-gc9f91