summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_spanningtree/treeserver.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/treeserver.cpp b/src/modules/m_spanningtree/treeserver.cpp
index c9e65b214..8930a7188 100644
--- a/src/modules/m_spanningtree/treeserver.cpp
+++ b/src/modules/m_spanningtree/treeserver.cpp
@@ -121,7 +121,12 @@ int TreeServer::QuitUsers(const std::string &reason)
{
userrec* a = (userrec*)*n;
if (!IS_LOCAL(a))
- userrec::QuitUser(ServerInstance, a, "*.net *.split", reason_s);
+ {
+ if (ServerInstance->Config->HideSplits)
+ userrec::QuitUser(ServerInstance, a, "*.net *.split", reason_s);
+ else
+ userrec::QuitUser(ServerInstance, a, reason_s);
+ }
}
return time_to_die.size();
}