IOnUserApprove
WARNING
This is an internal hook and will not be called in plugins. See Internal Hooks for more information.
Usage
- Return a non-null value to override default behavior
Example Autogenerated
csharp
private void IOnUserApprove( Connection connection )
{
Puts( "IOnUserApprove works!" );
}
Location
- ConnectionAuth::OnNewConnection(Network.Connection connection)
csharp
//---
if (DeveloperList.Contains(connection.userid))
{
DebugEx.Log(connection.ToString() + " is a developer", StackTraceLogType.None);
connection.authLevel = 3u;
}
if (Interface.CallHook("IOnUserApprove", connection) != null)
{
return;
}
ConnectionAuth.m_AuthConnection.Add(connection);
base.StartCoroutine(this.AuthorisationRoutine(connection));
//---