summaryrefslogtreecommitdiff
path: root/src/bots.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-08-01 20:05:52 -0400
committerAdam <Adam@anope.org>2010-08-01 20:05:52 -0400
commit90976b66728fcc671f3ecc4a2d39e438d6d8bcb6 (patch)
tree3bfa64be578a52480b1c18535e46a14a72592df0 /src/bots.cpp
parente8d6524411e188f4de32a231857b078b57aef151 (diff)
Fixed some issues with reconnecting if we disconnect from the uplink
Diffstat (limited to 'src/bots.cpp')
-rw-r--r--src/bots.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bots.cpp b/src/bots.cpp
index 88b981dcc..940fd8f3b 100644
--- a/src/bots.cpp
+++ b/src/bots.cpp
@@ -49,7 +49,7 @@ BotInfo::BotInfo(const Anope::string &nnick, const Anope::string &nuser, const A
BotListByUID[this->uid] = this;
// If we're synchronised with the uplink already, call introduce_user() for this bot.
- if (Me && Me->GetUplink() && Me->GetUplink()->IsSynced())
+ if (Me && !Me->GetLinks().empty() && Me->GetLinks().front()->IsSynced())
{
ircdproto->SendClientIntroduction(this->nick, this->GetIdent(), this->host, this->realname, ircd->pseudoclient_mode, this->uid);
XLine x(this->nick, "Reserved for services");