aboutsummaryrefslogtreecommitdiffstats
path: root/modules/spanningtree/treeserver.cpp
diff options
context:
space:
mode:
authorGravatar Sadie Powell2024-09-19 15:53:54 +0100
committerGravatar Sadie Powell2024-09-19 15:53:54 +0100
commit4f9830ff2e0d27c8308226bbe2dabe834087f04a (patch)
treec930fd7a10f25f2b7594a4a3cd2cc4bc8a0bb1f1 /modules/spanningtree/treeserver.cpp
parentAdd some extra methods to the Server class. (diff)
downloadinspircd++-4f9830ff2e0d27c8308226bbe2dabe834087f04a.tar.gz
inspircd++-4f9830ff2e0d27c8308226bbe2dabe834087f04a.tar.bz2
inspircd++-4f9830ff2e0d27c8308226bbe2dabe834087f04a.zip
Make the server protocol APIs use a reference instead of a pointer.
Diffstat (limited to 'modules/spanningtree/treeserver.cpp')
-rw-r--r--modules/spanningtree/treeserver.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/spanningtree/treeserver.cpp b/modules/spanningtree/treeserver.cpp
index 871bcd578..c202685ed 100644
--- a/modules/spanningtree/treeserver.cpp
+++ b/modules/spanningtree/treeserver.cpp
@@ -124,7 +124,7 @@ TreeServer::TreeServer(const std::string& Name, const std::string& Desc, const s
this->AddHashEntry();
Parent->Children.push_back(this);
- Utils->Creator->linkeventprov.Call(&ServerProtocol::LinkEventListener::OnServerLink, this);
+ Utils->Creator->linkeventprov.Call(&ServerProtocol::LinkEventListener::OnServerLink, *this);
}
void TreeServer::BeginBurst(uint64_t startms)
@@ -158,7 +158,7 @@ void TreeServer::FinishBurst()
unsigned long bursttime = ts - this->StartBurst;
ServerInstance->SNO.WriteToSnoMask(Parent == Utils->TreeRoot ? 'l' : 'L', "Received end of netburst from \002{}\002 (burst time: {} {})",
GetName(), (bursttime > 10000 ? bursttime / 1000 : bursttime), (bursttime > 10000 ? "secs" : "msecs"));
- Utils->Creator->linkeventprov.Call(&ServerProtocol::LinkEventListener::OnServerBurst, this);
+ Utils->Creator->linkeventprov.Call(&ServerProtocol::LinkEventListener::OnServerBurst, *this);
StartBurst = 0;
FinishBurstInternal();
@@ -213,7 +213,7 @@ void TreeServer::SQuitInternal(unsigned int& num_lost_servers, bool error)
RemoveHash();
if (!Utils->Creator->dying)
- Utils->Creator->linkeventprov.Call(&ServerProtocol::LinkEventListener::OnServerSplit, this, error);
+ Utils->Creator->linkeventprov.Call(&ServerProtocol::LinkEventListener::OnServerSplit, *this, error);
}
size_t TreeServer::QuitUsers(const std::string& reason)