From 6e6543d3ed3fda9ff62268dea426709801927dc5 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 31 Dec 2013 15:35:15 -0500 Subject: 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. --- src/messages.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/messages.cpp') diff --git a/src/messages.cpp b/src/messages.cpp index 639b07a58..680f5ce7d 100644 --- a/src/messages.cpp +++ b/src/messages.cpp @@ -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(); + } } } -- cgit