summaryrefslogtreecommitdiff
path: root/src/bots.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-10-02 15:20:13 -0400
committerAdam <Adam@anope.org>2010-10-02 15:24:00 -0400
commit8a0cf62d703a7e4b15c2d04d9d38e1b58165ef4d (patch)
tree5ff74a0a90dd62d44cd20b0c5419e45db4faedd8 /src/bots.cpp
parent59f35732f66456cca9e459134f926d8b8c17f469 (diff)
Set the botmodes on bots in the log channel(s) when using ircds that have dynamic modes
Diffstat (limited to 'src/bots.cpp')
-rw-r--r--src/bots.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bots.cpp b/src/bots.cpp
index be580c2a0..fbb5de3c7 100644
--- a/src/bots.cpp
+++ b/src/bots.cpp
@@ -169,7 +169,7 @@ void BotInfo::Join(Channel *c, bool update_ts)
c->JoinUser(this);
ChannelContainer *cc = this->FindChannel(c);
- for (int i = 0; i < Config->BotModeList.size(); ++i)
+ for (unsigned i = 0; i < Config->BotModeList.size(); ++i)
{
if (!update_ts)
{
@@ -183,6 +183,7 @@ void BotInfo::Join(Channel *c, bool update_ts)
}
if (!update_ts)
ircdproto->SendJoin(this, c->name, c->creation_time);
+ /* This is sent later, when we burst to the uplink */
else if (Me && Me->IsSynced())
{
ircdproto->SendJoin(this, cc);