From eef1d4d691e8b7c4c80763dcd1e0c97b11350be0 Mon Sep 17 00:00:00 2001 From: "Naram Qashat cyberbotx@cyberbotx.com" Date: Wed, 15 Oct 2008 02:57:50 +0000 Subject: Merge branch 'anopeng-config' of http://git.inspircd.org/git/anope/ into anopeng-config git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1449 5417fbe8-f217-4b02-8779-1006273d7864 --- src/chanserv.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/chanserv.c') diff --git a/src/chanserv.c b/src/chanserv.c index b3812dc1c..598982cd9 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -1574,8 +1574,7 @@ void cs_remove_nick(const NickCore * nc) if (ci->founder == nc) { if (ci->successor) { NickCore *nc2 = ci->successor; - if (!nick_is_services_admin(nc2) && nc2->channelmax > 0 - && nc2->channelcount >= nc2->channelmax) { + if (!nick_is_services_admin(nc2) && CSMaxReg && nc2->channelcount >= CSMaxReg) { alog("%s: Successor (%s) of %s owns too many channels, " "deleting channel", s_ChanServ, nc2->display, ci->name); delchan(ci); continue; -- cgit