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

I don't think this OnBotKick to hold channels is necessary anymore as Sync should cover everything now, and this causes weird things when the last user in a channel kicks themselves out using the bot. Also handle users rejoining a channel while its held better.

This commit is contained in:
Adam
2013-12-31 15:35:15 -05:00
parent 6124af68cc
commit 6e6543d3ed
2 changed files with 13 additions and 19 deletions
+7
View File
@@ -150,7 +150,14 @@ void Join::SJoin(MessageSource &source, const Anope::string &chan, time_t ts, co
/* the channel is synced when the netmerge is complete */
Server *src = source.GetServer() ? source.GetServer() : Me;
if (src && src->IsSynced())
{
c->Sync();
if (c->CheckDelete())
delete c;
else
c->CheckModes();
}
}
}