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/cmd_list.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/cmd_list.cpp') diff --git a/src/cmd_list.cpp b/src/cmd_list.cpp index ed956e7f1..1a5688293 100644 --- a/src/cmd_list.cpp +++ b/src/cmd_list.cpp @@ -64,14 +64,14 @@ CmdResult cmd_list::Handle (const char** parameters, int pcnt, userrec *user) // if the channel is not private/secret, OR the user is on the channel anyway bool n = i->second->HasUser(user); - if ((i->second->modes[CM_PRIVATE]) && (!n)) + if ((i->second->IsModeSet('p')) && (!n)) { if (users) user->WriteServ("322 %s *",user->nick,i->second->name); } else { - if (((!(i->second->modes[CM_PRIVATE])) && (!(i->second->modes[CM_SECRET]))) || (n)) + if (((!(i->second->IsModeSet('p'))) && (!(i->second->IsModeSet('p')))) || (n)) { long users = i->second->GetUserCounter(); if (users) @@ -83,3 +83,4 @@ CmdResult cmd_list::Handle (const char** parameters, int pcnt, userrec *user) return CMD_SUCCESS; } + -- cgit v1.3.1-10-gc9f91