Skip to content

Commit

Permalink
Merge pull request #585 from ao-org/versionok-delete
Browse files Browse the repository at this point in the history
Deleted deprecated VersionOk function
  • Loading branch information
RecoX authored May 11, 2024
2 parents c662932 + d01ac89 commit 867e610
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 36 deletions.
17 changes: 0 additions & 17 deletions Codigo/Admin.bas
Original file line number Diff line number Diff line change
Expand Up @@ -174,23 +174,6 @@ Public IpList As New Collection

Public Baneos As New Collection

'Public ResetThread As New clsThreading

Function VersionOK(ByVal Ver As String) As Boolean

On Error GoTo VersionOK_Err

100 VersionOK = (Ver = ULTIMAVERSION)


Exit Function

VersionOK_Err:
102 Call TraceError(Err.Number, Err.Description, "Admin.VersionOK", Erl)


End Function

Sub ReSpawnOrigPosNpcs()
On Error GoTo Handler
Dim i As Integer
Expand Down
18 changes: 0 additions & 18 deletions Codigo/Protocol.bas
Original file line number Diff line number Diff line change
Expand Up @@ -1083,13 +1083,6 @@ Private Sub HandleLoginExistingChar(ByVal ConnectionId As Long)
UserList(UserIndex).public_key = mid$(decrypted_session_token, 1, 16)

user_name = AO20CryptoSysWrapper.DECRYPT(cnvHexStrFromString(UserList(UserIndex).public_key), encrypted_username)
#If DEBUGGING = False Then
If Not VersionOK(Version) Then
Call WriteShowMessageBox(UserIndex, "Esta versión del juego es obsoleta, la versión correcta es la " & ULTIMAVERSION & ". Ejecute el launcher por favor.")
Call CloseSocket(UserIndex)
Exit Sub
End If
#End If

If Not EntrarCuenta(UserIndex, CuentaEmail, MD5) Then
Call CloseSocket(UserIndex)
Expand Down Expand Up @@ -1194,17 +1187,6 @@ Private Sub HandleLoginNewChar(ByVal ConnectionId As Long)

End If

#If DEBUGGING = False Then

142 If Not VersionOK(Version) Then
144 Call WriteShowMessageBox(UserIndex, "Esta versión del juego es obsoleta, la versión correcta es la " & ULTIMAVERSION & ". Ejecute el launcher por favor.")
146 Call CloseSocket(UserIndex)
Exit Sub

End If

#End If

148 If EsGmChar(UserName) Then

150 If AdministratorAccounts(UCase$(UserName)) <> UCase$(CuentaEmail) Then
Expand Down
1 change: 0 additions & 1 deletion Example.Server.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ Hide=0
MaxConexionesIP=3
MaxUsersPorCuenta=3
IdleLimit=10
Version=2.0.4
IniciarDesdeBackUp=0
PuedeCrearPersonajes=1
ServerSoloGMs=0
Expand Down

0 comments on commit 867e610

Please sign in to comment.