summaryrefslogtreecommitdiff
path: root/src/servers.cpp
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@anope.org>2013-12-14 09:56:51 +0100
committerDukePyrolator <DukePyrolator@anope.org>2013-12-14 09:56:51 +0100
commitadbc5a0e65ab650b2cd50f518cf9c727ec5fa7b4 (patch)
treeb6f6b93c4ceffaad9a0fbc5fb96df2f47166b5d7 /src/servers.cpp
parentf9a4a0fbeffce294d9f0818fcc02d9dd0f2ec32b (diff)
irc2sql: improved handling of netsplits
Diffstat (limited to 'src/servers.cpp')
-rw-r--r--src/servers.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/servers.cpp b/src/servers.cpp
index 5f05c4d61..46e1a7077 100644
--- a/src/servers.cpp
+++ b/src/servers.cpp
@@ -32,6 +32,7 @@ Server::Server(Server *up, const Anope::string &sname, unsigned shops, const Ano
{
syncing = true;
juped = jupe;
+ quitting = false;
Servers::ByName[sname] = this;
if (!ssid.empty())
@@ -164,6 +165,7 @@ Server::~Server()
void Server::Delete(const Anope::string &reason)
{
this->quit_reason = reason;
+ this->quitting = true;
FOREACH_MOD(OnServerQuit, (this));
delete this;
}
@@ -315,6 +317,11 @@ bool Server::IsJuped() const
return juped;
}
+bool Server::IsQuitting() const
+{
+ return quitting;
+}
+
void Server::Notice(BotInfo *source, const Anope::string &message)
{
if (Config->UsePrivmsg && Config->DefPrivmsg)