Skip to content

Commit

Permalink
Merge pull request #397 from ao-org/fix-kick-by-connection-instead-of…
Browse files Browse the repository at this point in the history
…-userid

fix kick id
  • Loading branch information
RecoX authored Sep 22, 2023
2 parents 19b1687 + 0ba08ee commit f2d0b67
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Codigo/TCP.bas
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Codigo/modNetwork.bas
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f2d0b67

Please sign in to comment.