From 860a3579257124d1d9cbc3081a2096726103e5d0 Mon Sep 17 00:00:00 2001 From: w00t Date: Sun, 6 Jan 2008 13:40:34 +0000 Subject: Basic core changes for permanent channels. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8649 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/commands/cmd_list.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/commands') diff --git a/src/commands/cmd_list.cpp b/src/commands/cmd_list.cpp index 0e97d0db1..d5ceef9e3 100644 --- a/src/commands/cmd_list.cpp +++ b/src/commands/cmd_list.cpp @@ -64,16 +64,13 @@ CmdResult CommandList::Handle (const char** parameters, int pcnt, User *user) bool n = i->second->HasUser(user); if ((i->second->IsModeSet('p')) && (!n)) { - if (users) - user->WriteServ("322 %s *",user->nick,i->second->name); + user->WriteServ("322 %s *",user->nick,i->second->name); } else { if (((!(i->second->IsModeSet('p'))) && (!(i->second->IsModeSet('s')))) || (n)) { - long users = i->second->GetUserCounter(); - if (users) - user->WriteServ("322 %s %s %d :[+%s] %s",user->nick,i->second->name,users,i->second->ChanModes(n),i->second->topic); + user->WriteServ("322 %s %s %d :[+%s] %s",user->nick,i->second->name,users,i->second->ChanModes(n),i->second->topic); } } } -- cgit v1.2.3