summaryrefslogtreecommitdiff
path: root/src/commands
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-06 13:40:34 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2008-01-06 13:40:34 +0000
commit860a3579257124d1d9cbc3081a2096726103e5d0 (patch)
tree665affab7d8af8e1ad0e333ffad2be4417dc53a2 /src/commands
parentc916c63445ab46b060d783181bf41e8b94e8ae27 (diff)
Basic core changes for permanent channels.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8649 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/commands')
-rw-r--r--src/commands/cmd_list.cpp7
1 files changed, 2 insertions, 5 deletions
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);
}
}
}