Added: Another hook for server extensions
This commit is contained in:
@@ -212,6 +212,12 @@ namespace OpenRA.Server
|
||||
static void AcceptConnection()
|
||||
{
|
||||
var newConn = new Connection { socket = listener.AcceptSocket() };
|
||||
if (Game.Settings.Server.Extension != null && !Game.Settings.Server.Extension.OnValidateConnection(GameStarted, newConn))
|
||||
{
|
||||
DropClient(newConn, new Exception() );
|
||||
|
||||
return;
|
||||
}
|
||||
try
|
||||
{
|
||||
if (GameStarted)
|
||||
|
||||
Reference in New Issue
Block a user