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/users.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/users.cpp') diff --git a/src/users.cpp b/src/users.cpp index 8b9227083..063a31dee 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -1631,7 +1631,7 @@ void userrec::WriteWallOps(const std::string &text) for (std::vector::const_iterator i = ServerInstance->local_users.begin(); i != ServerInstance->local_users.end(); i++) { userrec* t = *i; - if (t->modes[UM_WALLOPS]) + if (t->IsModeSet('w')) this->WriteTo(t,wallop); } } @@ -1790,7 +1790,7 @@ std::string userrec::ChannelList(userrec* source) * If the channel is NOT private/secret OR the user shares a common channel * If the user is an oper, and the option is set. */ - if ((source == this) || (IS_OPER(source) && ServerInstance->Config->OperSpyWhois) || (((!i->first->modes[CM_PRIVATE]) && (!i->first->modes[CM_SECRET])) || (i->first->HasUser(source)))) + if ((source == this) || (IS_OPER(source) && ServerInstance->Config->OperSpyWhois) || (((!i->first->IsModeSet('p')) && (!i->first->IsModeSet('s'))) || (i->first->HasUser(source)))) { list.append(i->first->GetPrefixChar(this)).append(i->first->name).append(" "); } -- cgit v1.2.3