aboutsummaryrefslogtreecommitdiff
path: root/src/cmd_list.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-07-23 18:06:57 +0000
committerGravatar brain2007-07-23 18:06:57 +0000
commit10ef0fde2e1832f0684ae142a582cb5f032bfe6a (patch)
tree11bb007b9d1aa0630641c000d59b3715c025f442 /src/cmd_list.cpp
parentMake these notices a little more helpful (diff)
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
Diffstat (limited to 'src/cmd_list.cpp')
-rw-r--r--src/cmd_list.cpp5
1 files changed, 3 insertions, 2 deletions
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;
}
+