aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_spanningtree/main.cpp
diff options
context:
space:
mode:
authorGravatar Attila Molnar2014-07-28 14:44:51 +0200
committerGravatar Attila Molnar2014-07-28 14:44:51 +0200
commit634f44bb84d76e051e7393fd013d6a86419fb9ce (patch)
tree4578248cd1c2c3e2b6c6901494d3fefd7376ac11 /src/modules/m_spanningtree/main.cpp
parentm_spanningtree Change type of num_lost_* to be unsigned (diff)
downloadinspircd++-634f44bb84d76e051e7393fd013d6a86419fb9ce.tar.gz
inspircd++-634f44bb84d76e051e7393fd013d6a86419fb9ce.tar.bz2
inspircd++-634f44bb84d76e051e7393fd013d6a86419fb9ce.zip
m_spanningtree Check TreeServer::IsDead() to learn whether a user is being quit due to a netsplit in OnUserQuit()
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
-rw-r--r--src/modules/m_spanningtree/main.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index e3814a885..64479163c 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -582,7 +582,8 @@ void ModuleSpanningTree::OnUserQuit(User* user, const std::string &reason, const
// Hide the message if one of the following is true:
// - User is being quit due to a netsplit and quietbursts is on
// - Server is a silent uline
- bool hide = (((this->SplitInProgress) && (Utils->quiet_bursts)) || (user->server->IsSilentULine()));
+ TreeServer* server = TreeServer::Get(user);
+ bool hide = (((server->IsDead()) && (Utils->quiet_bursts)) || (server->IsSilentULine()));
if (!hide)
{
ServerInstance->SNO->WriteToSnoMask('Q', "Client exiting on server %s: %s (%s) [%s]",