mirror of
https://github.com/anope/anope.git
synced 2026-07-03 06:53:14 +02:00
Don't use botserv bots to hold channels open, becomes too much of a problem if people unassign/reassign bots etc
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2921 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-4
@@ -1206,10 +1206,7 @@ void ChanServTimer::Tick(time_t)
|
||||
if (!c->users.empty())
|
||||
return;
|
||||
|
||||
if (c->ci->bi)
|
||||
ircdproto->SendPart(c->ci->bi, c, NULL);
|
||||
else
|
||||
ircdproto->SendPart(findbot(Config.s_ChanServ), c, NULL);
|
||||
ircdproto->SendPart(findbot(Config.s_ChanServ), c, NULL);
|
||||
|
||||
/* Now delete the channel as it is empty */
|
||||
if (!c->HasFlag(CH_PERSIST) && !c->ci->HasFlag(CI_PERSIST))
|
||||
|
||||
+3
-6
@@ -647,13 +647,10 @@ akick->nc->display : akick->mask);
|
||||
c->SetMode(NULL, CMODE_INVITE);
|
||||
}
|
||||
|
||||
/* This channel has no bot assigned to it, join ChanServ */
|
||||
if (!this->bi)
|
||||
{
|
||||
ircdproto->SendJoin(findbot(Config.s_ChanServ), this->name.c_str(), this->c->creation_time);
|
||||
}
|
||||
/* Join ChanServ */
|
||||
ircdproto->SendJoin(findbot(Config.s_ChanServ), this->name.c_str(), this->c->creation_time);
|
||||
|
||||
/* Set a timer for this channel to part the bots later */
|
||||
/* Set a timer for this channel to part ChanServ later */
|
||||
new ChanServTimer(this->c);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user