OnClientAuth
Usage
- No return behavior
Example Autogenerated
csharp
private void OnClientAuth( Network.Connection connection )
{
Puts( "OnClientAuth works!" );
}Location
- ServerMgr::OnGiveUserInformation(Network.Message packet)
csharp
//---
string text2 = BuildInfo.Current?.Scm?.Branch ?? string.Empty;
if (packet.read.Unread >= 4)
{
text = packet.read.String(128);
}
Interface.CallHook("OnClientAuth", packet.connection);
if (!IsClientBranchAllowed(text2, text))
{
if (!DeveloperList.Contains(packet.connection.userid))
{
DebugEx.Log("Kicking " + packet.connection?.ToString() + " - their branch is '" + text + "' not '" + text2 + "'");
//---