summaryrefslogtreecommitdiff
path: root/src/bots.cpp
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2010-12-30 05:50:55 +0100
committerDukePyrolator <DukePyrolator@anope.org>2010-12-30 05:50:55 +0100
commit2784cd17fc5e0ee4ad0571a6b9e131fa38a93a65 (patch)
tree9978409f958f97d4932879c0d65363ec24b799d5 /src/bots.cpp
parent292e1875246a6398cdc9f04ee91d7bb43dc40b45 (diff)
parent03cc9eb5c597e37239debac25a7ed6ad4f4d9411 (diff)
Merge branch '1.9' of ssh://anope.git.sourceforge.net/gitroot/anope/anope into 1.9
Diffstat (limited to 'src/bots.cpp')
-rw-r--r--src/bots.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/bots.cpp b/src/bots.cpp
index 07ea91b3a..1f7b118d8 100644
--- a/src/bots.cpp
+++ b/src/bots.cpp
@@ -64,6 +64,14 @@ BotInfo::BotInfo(const Anope::string &nnick, const Anope::string &nuser, const A
BotInfo::~BotInfo()
{
+ // If we're synchronised with the uplink already, send the bot.
+ if (Me && Me->IsSynced())
+ {
+ ircdproto->SendQuit(this, NULL);
+ XLine x(this->nick);
+ ircdproto->SendSQLineDel(&x);
+ }
+
for (registered_channel_map::const_iterator it = RegisteredChannelList.begin(), it_end = RegisteredChannelList.end(); it != it_end; ++it)
{
ChannelInfo *ci = it->second;