From 420a56c8c49ff2738efcf2c6afd14002ddaacc49 Mon Sep 17 00:00:00 2001 From: jenz Date: Fri, 28 Aug 2026 11:07:43 +0100 Subject: [PATCH] adding extra logging messages as a delay mechanism so nosteamers netaddress have enough time to be ready --- extension/extension.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/extension/extension.cpp b/extension/extension.cpp index 5ddbf0b..17dc927 100644 --- a/extension/extension.cpp +++ b/extension/extension.cpp @@ -466,6 +466,15 @@ DETOUR_DECL_MEMBER9(CBaseServer__ConnectClient, IClient*, netadr_t&, address, in char ipString[30]; V_snprintf(ipString, sizeof(ipString), "%u.%u.%u.%u", address.ip[0], address.ip[1], address.ip[2], address.ip[3]); + + char IpsAllowed[255]; + V_strncpy(IpsAllowed, g_SvSetSteamIDIPS.GetString(), 255); + //you think i am kidding but without this extra log message will ipString end up being empty for nosteamers. + //probably because of netadr_t& address not being processed yet as is. So these logging messages add enough delay. + smutils->LogMessage(myself, "IpsAllowed: %s. ipString: %s", IpsAllowed, ipString); + smutils->LogMessage(myself, "IpsAllowed: %s. ipString: %s", IpsAllowed, ipString); + smutils->LogMessage(myself, "IpsAllowed: %s. ipString: %s", IpsAllowed, ipString); + V_strncpy(passwordBuffer, pchPassword, 255); uint64 ullSteamID = *(uint64 *)pCookie;