summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-12-31 15:35:15 -0500
committerAdam <Adam@anope.org>2013-12-31 16:12:21 -0500
commit6e6543d3ed3fda9ff62268dea426709801927dc5 (patch)
tree882701e3b00315c310514644fede002698861eff /src
parent6124af68cc10f22e98988c865f8b8270dfcda1ff (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/messages.cpp7
1 files changed, 7 insertions, 0 deletions
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();
+ }
}
}