From 256288ae154bfb5eb8e2d83e596703ea717d43ee Mon Sep 17 00:00:00 2001 From: Sadie Powell Date: Fri, 31 Jul 2026 13:26:11 +0100 Subject: Make the connect notices a bit more consistent. --- modules/spanningtree/uid.cpp | 2 +- src/users.cpp | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/spanningtree/uid.cpp b/modules/spanningtree/uid.cpp index 5588661bf..73816ff21 100644 --- a/modules/spanningtree/uid.cpp +++ b/modules/spanningtree/uid.cpp @@ -139,7 +139,7 @@ CmdResult CommandUID::HandleServer(TreeServer* remoteserver, CommandBase::Params if (dosend) { - ServerInstance->SNO.WriteToSnoMask('C', "Client connecting at {}: {} ({}) [{}\x0F]", remoteserver->GetName(), + ServerInstance->SNO.WriteToSnoMask('C', "Client connecting to {}: {} ({}) [{}\x0F]", remoteserver->GetName(), _new->GetRealMask(), _new->GetAddress(), _new->GetRealName()); } diff --git a/src/users.cpp b/src/users.cpp index 37623a2dc..b73ac3a48 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -371,8 +371,9 @@ void LocalUser::FullConnect() FOREACH_MOD(OnPostConnect, (this)); - ServerInstance->SNO.WriteToSnoMask('c', "Client connecting on port {} (class {}): {} ({}) [{}\x0F]", - server_sa.port(), GetClass()->GetName(), GetRealMask(), GetAddress(), GetRealName()); + ServerInstance->SNO.WriteToSnoMask('c', "Client connecting to {} on port {} (class {}): {} ({}) [{}\x0F]", + ServerInstance->Config->ServerName, server_sa.port(), GetClass()->GetName(), + GetRealMask(), GetAddress(), GetRealName()); ServerInstance->Logs.Debug("BANCACHE", "Adding NEGATIVE hit for {}", this->GetAddress()); ServerInstance->BanCache.AddHit(this->GetAddress(), "", ""); -- cgit v1.3.1-10-gc9f91