diff options
Diffstat (limited to 'src/cmd_list.cpp')
-rw-r--r-- | src/cmd_list.cpp | 5 |
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; } + |