Added: Another hook for server extensions
This commit is contained in:
@@ -212,6 +212,12 @@ namespace OpenRA.Server
|
|||||||
static void AcceptConnection()
|
static void AcceptConnection()
|
||||||
{
|
{
|
||||||
var newConn = new Connection { socket = listener.AcceptSocket() };
|
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
|
try
|
||||||
{
|
{
|
||||||
if (GameStarted)
|
if (GameStarted)
|
||||||
|
|||||||
Reference in New Issue
Block a user