Added: Another hook for server extensions

This commit is contained in:
geckosoft
2010-11-01 05:14:20 +01:00
committed by Chris Forbes
parent 5164c3cd7d
commit 60a8acf4d4

View File

@@ -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)