mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-09 10:39:02 -04:00
Fix bursting server metadata.
This commit is contained in:
parent
dd7544a9f0
commit
3ad07f7082
@ -294,12 +294,12 @@ void TreeServer::RemoveHash()
|
||||
|
||||
void TreeServer::SendMetadata(const std::string& key, const std::string& data) const
|
||||
{
|
||||
if (!GetRoute())
|
||||
if (GetRoute() && GetRoute()->GetSocket())
|
||||
GetRoute()->GetSocket()->WriteLine(CommandMetadata::Builder(key, data));
|
||||
}
|
||||
|
||||
void TreeServer::SendMetadata(const Extensible* ext, const std::string& key, const std::string& data) const
|
||||
{
|
||||
if (!GetRoute())
|
||||
if (GetRoute() && GetRoute()->GetSocket())
|
||||
GetRoute()->GetSocket()->WriteLine(CommandMetadata::Builder(ext, key, data));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user