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/helperfuncs.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/helperfuncs.cpp') diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index da3fa5e1b..3591a2d89 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -116,7 +116,7 @@ void InspIRCd::WriteOpers(const std::string &text) for (std::vector::iterator i = this->all_opers.begin(); i != this->all_opers.end(); i++) { userrec* a = *i; - if (IS_LOCAL(a) && a->modes[UM_SERVERNOTICE]) + if (IS_LOCAL(a) && a->IsModeSet('s')) { // send server notices to all with +s a->WriteServ("NOTICE %s :%s",a->nick,text.c_str()); @@ -192,7 +192,7 @@ void InspIRCd::WriteMode(const char* modes, int flags, const char* text, ...) for (int n = 0; n < modelen; n++) { - if (!t->modes[modes[n]-65]) + if (!t->IsModeSet(modes[n])) { send_to_user = false; break; @@ -212,7 +212,7 @@ void InspIRCd::WriteMode(const char* modes, int flags, const char* text, ...) for (int n = 0; n < modelen; n++) { - if (t->modes[modes[n]-65]) + if (t->IsModeSet(modes[n])) { send_to_user = true; break; -- cgit v1.2.3