diff options
| author | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-15 02:57:50 +0000 |
|---|---|---|
| committer | Naram Qashat cyberbotx@cyberbotx.com <Naram Qashat cyberbotx@cyberbotx.com@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-10-15 02:57:50 +0000 |
| commit | eef1d4d691e8b7c4c80763dcd1e0c97b11350be0 (patch) | |
| tree | c23b2417b1b7402563abf410f4cbdbedf49d1425 /src/chanserv.c | |
| parent | 29a074878d72f789f9a7eacb6b17e2e97b33fdd0 (diff) | |
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
Diffstat (limited to 'src/chanserv.c')
| -rw-r--r-- | src/chanserv.c | 3 |
1 files changed, 1 insertions, 2 deletions
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; |
