From 0ba08eef857652239744c8c143b1fa2c73f6c164 Mon Sep 17 00:00:00 2001 From: matiascalegaris Date: Fri, 22 Sep 2023 19:05:26 -0300 Subject: [PATCH] fix kick id --- Codigo/TCP.bas | 2 +- Codigo/modNetwork.bas | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Codigo/TCP.bas b/Codigo/TCP.bas index 2fc675fe..9bb64204 100644 --- a/Codigo/TCP.bas +++ b/Codigo/TCP.bas @@ -679,7 +679,7 @@ Sub CloseSocketSL(ByVal UserIndex As Integer) On Error GoTo CloseSocketSL_Err 100 If UserList(UserIndex).ConnectionDetails.ConnIDValida Then -102 Call modNetwork.Kick(UserIndex) +102 Call modNetwork.Kick(UserList(UserIndex).ConnectionDetails.ConnID) 106 UserList(UserIndex).ConnectionDetails.ConnIDValida = False End If diff --git a/Codigo/modNetwork.bas b/Codigo/modNetwork.bas index a6711b5c..e7a9f326 100644 --- a/Codigo/modNetwork.bas +++ b/Codigo/modNetwork.bas @@ -325,7 +325,7 @@ Public Function MapConnectionToUser(ByVal ConnectionId As Long) As Integer 104 FreeUser = NextOpenUser() 106 If IsFeatureEnabled("debug_id_assign") Then -108 Call LogError("Assign userId: " & FreeUser & " to connection: " & Connection) +108 Call LogError("Assign userId: " & FreeUser & " to connection: " & ConnectionID) End If 110 If FreeUser < 0 Then