summaryrefslogtreecommitdiff
path: root/src/bots.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2010-07-10 21:18:22 -0400
committerAdam <Adam@anope.org>2010-07-10 21:18:22 -0400
commita49521302628982f62ddadd997a81734f4d8c84f (patch)
tree22f14500849a1035d9af5c4a909624026ddb2209 /src/bots.cpp
parentfa622aae38b7aa11ecab78412e91e262ae6fb3e3 (diff)
Properly set up our clients as on our server internally. Fixes crashes when trying to akick our own clients etc
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 6389ac2cd..4114d4317 100644
--- a/src/bots.cpp
+++ b/src/bots.cpp
@@ -50,7 +50,7 @@ BotInfo::BotInfo(const std::string &nnick, const std::string &nuser, const std::
BotListByUID[this->uid] = this;
// If we're synchronised with the uplink already, call introduce_user() for this bot.
- if (Me && Me->GetUplink()->IsSynced())
+ if (Me && Me->GetUplink() && Me->GetUplink()->IsSynced())
{
ircdproto->SendClientIntroduction(this->nick, this->GetIdent(), this->host, this->realname, ircd->pseudoclient_mode, this->uid);
XLine x(this->nick.c_str(), "Reserved for services");