1
0
mirror of https://github.com/anope/anope.git synced 2026-06-29 16:36:38 +02:00

Fix setting modes on botserv bots in channels that have other bots in them on startup

This commit is contained in:
Adam
2013-02-15 23:18:34 -05:00
parent d9c18a6072
commit 7be23b7e37
4 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -147,7 +147,7 @@ void BotInfo::Assign(User *u, ChannelInfo *ci)
ci->bi->UnAssign(u, ci);
ci->bi = this;
if (ci->c && ci->c->users.size() >= Config->BSMinUsers)
if (Me->IsSynced() && ci->c && ci->c->users.size() >= Config->BSMinUsers)
this->Join(ci->c, &ModeManager::DefaultBotModes);
}