HolyLib Wiki

HolyLib:OnNotifyClientConnect

  boolean HolyLib:OnNotifyClientConnect( number nextUserID, string ipAddress, string steamID64, number authResult )

Description

Called when a client wants to authenticate through steam.

The steamID64 may be spoofed, so don't rely on it!

Arguments

1number nextUserID
The userID the client would receive after authenticating
2string ipAddress
The IP address of the client
3string steamID64
The SteamID64 the client sent
4number authResult

The steam auth result

Status Description
0 Ticket is valid for this game and this steamID
1 Ticket is not valid
2 A ticket has already been submitted for this steamID
3 Ticket is from an incompatible interface version
4 Ticket is not for this game
5 Ticket has expired

Returns

1boolean override = nil

Return true to forcefully authenticate his steamid.
Return false to block his authentication.
Return nothing to let the server normally handle it.