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:
+2
-2
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user