From 8955e156a5585a71c232f91893bb48783bf5775d Mon Sep 17 00:00:00 2001 From: "mark mark@31f1291d-b8d6-0310-a050-a5561fc1590b" Date: Sat, 16 Aug 2008 15:43:09 +0000 Subject: BUILD : 1.7.21 (1410) BUGS : 924 NOTES : Bug fixed where forbidden channels will appear in /list when inhabited by ChanServ git-svn-id: svn://svn.anope.org/anope/trunk@1410 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1125 5417fbe8-f217-4b02-8779-1006273d7864 --- src/chanserv.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/chanserv.c b/src/chanserv.c index 1d2b349f6..68197a230 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -1586,6 +1586,10 @@ int check_kick(User * user, char *chan, time_t chants) if ((!(c = findchan(chan)) || c->usercount == 0) && !(ci->flags & CI_INHABIT)) { anope_cmd_join(s_ChanServ, chan, (c ? c->creation_time : chants)); + /* Lets hide the channel from /list just incase someone does /list + * while we are here. - katsklaw + */ + anope_cmd_mode(s_ChanServ, chan, "+ntsi"); t = add_timeout(CSInhabit, timeout_leave, 0); t->data = sstrdup(chan); ci->flags |= CI_INHABIT; -- cgit