From 5feabe435758fda7348d352b4b3410b769e4cd26 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 31 Jan 2006 21:55:34 +0000 Subject: Key hiding when youre not on the channel git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2998 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/cmd_list.cpp') diff --git a/src/cmd_list.cpp b/src/cmd_list.cpp index 8d7756683..262738fb3 100644 --- a/src/cmd_list.cpp +++ b/src/cmd_list.cpp @@ -48,7 +48,7 @@ void cmd_list::Handle (char **parameters, int pcnt, userrec *user) // if the channel is not private/secret, OR the user is on the channel anyway if (((!(i->second->binarymodes & CM_PRIVATE)) && (!(i->second->binarymodes & CM_SECRET))) || (has_channel(user,i->second))) { - WriteServ(user->fd,"322 %s %s %d :[+%s] %s",user->nick,i->second->name,usercount_i(i->second),chanmodes(i->second),i->second->topic); + WriteServ(user->fd,"322 %s %s %d :[+%s] %s",user->nick,i->second->name,usercount_i(i->second),chanmodes(i->second,has_channel(user,i->second)),i->second->topic); } } WriteServ(user->fd,"323 %s :End of channel list.",user->nick); -- cgit v1.3.1-10-gc9f91