mirror of
https://github.com/anope/anope.git
synced 2026-07-07 11:23:13 +02:00
Fixed joining chanserv enforcers to unregistered channels
This commit is contained in:
+1
-1
@@ -106,7 +106,7 @@ void Channel::Reset()
|
||||
|
||||
void Channel::Sync()
|
||||
{
|
||||
if (this->users.empty() || (this->users.size() == 1 && this->ci && this->ci->bi == this->users.front()->user))
|
||||
if (!this->HasMode(CMODE_PERM) && (this->users.empty() || (this->users.size() == 1 && this->ci && this->ci->bi == this->users.front()->user)))
|
||||
{
|
||||
new ChanServTimer(this);
|
||||
}
|
||||
|
||||
+1
-1
@@ -837,7 +837,7 @@ ChanServTimer::ChanServTimer(Channel *chan) : Timer(Config->CSInhabit), c(chan)
|
||||
{
|
||||
if (c->ci)
|
||||
c->ci->SetFlag(CI_INHABIT);
|
||||
if (!c->ci->bi)
|
||||
if (!c->ci || !c->ci->bi)
|
||||
ChanServ->Join(*c);
|
||||
else if (!c->FindUser(c->ci->bi))
|
||||
c->ci->bi->Join(*c);
|
||||
|
||||
Reference in New Issue
Block a user