diff options
Diffstat (limited to 'src/modules/m_spanningtree/compat.cpp')
-rw-r--r-- | src/modules/m_spanningtree/compat.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/modules/m_spanningtree/compat.cpp b/src/modules/m_spanningtree/compat.cpp index fc9700740..0d50b4325 100644 --- a/src/modules/m_spanningtree/compat.cpp +++ b/src/modules/m_spanningtree/compat.cpp @@ -286,7 +286,12 @@ void TreeSocket::WriteLine(const std::string& original_line) // Synthesize a :<newserver> BURST <time> message spcolon = line.find(" :"); - line = CmdBuilder(line.substr(spcolon-3, 3), "BURST").push_int(ServerInstance->Time()).str(); + + TreeServer* const source = Utils->FindServerID(line.substr(spcolon-3, 3)); + if (!source) + return; + + line = CmdBuilder(source, "BURST").push_int(ServerInstance->Time()).str(); } } else if (command == "NUM") |