1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 02:03:12 +02:00

1. when dropping nicks, dont add the dropped nick as successor for a channel 2. set -r on dropped channels

This commit is contained in:
DukePyrolator
2011-03-25 17:42:13 +01:00
parent 451fb82e54
commit 26de1d9f93
+2 -2
View File
@@ -433,7 +433,7 @@ void cs_remove_nick(NickCore *nc)
{
ChanAccess *ca = ci->GetAccess(j);
if (!ca->nc || (!ca->nc->IsServicesOper() && Config->CSMaxReg && ca->nc->channelcount >= Config->CSMaxReg))
if (!ca->nc || (!ca->nc->IsServicesOper() && Config->CSMaxReg && ca->nc->channelcount >= Config->CSMaxReg) || (ca->nc == nc))
continue;
if (!highest || ca->level > highest->level)
highest = ca;
@@ -457,7 +457,7 @@ void cs_remove_nick(NickCore *nc)
{
/* Maybe move this to delchan() ? */
if (ci->c && ci->c->HasMode(CMODE_REGISTERED))
ci->c->RemoveMode(NULL, CMODE_REGISTERED);
ci->c->RemoveMode(NULL, CMODE_REGISTERED, true);
}
delete ci;