core/smn_banning.cpp
changeset 2583 d3b2571c378b
parent 2289 44045ead61cd
child 2746 8d68569b9648
     1.1 --- a/core/smn_banning.cpp	Sun Feb 08 15:40:48 2009 -0500
     1.2 +++ b/core/smn_banning.cpp	Wed Feb 18 02:19:22 2009 -0600
     1.3 @@ -268,6 +268,7 @@
     1.4  	ban_flags = params[3];
     1.5  	ban_source = params[7];
     1.6  
     1.7 +#if SOURCE_ENGINE != SE_DARKMESSIAH
     1.8  	/* Check how we should ban the player */
     1.9  	if ((ban_flags & BANFLAG_AUTO) == BANFLAG_AUTO)
    1.10  	{
    1.11 @@ -303,6 +304,11 @@
    1.12  	{
    1.13  		return pContext->ThrowNativeError("No valid ban method flags specified");
    1.14  	}
    1.15 +#else
    1.16 +	/* Dark Messiah doesn't have Steam IDs so there is only one ban method to choose */
    1.17 +	ban_flags |= BANFLAG_IP;
    1.18 +	ban_flags &= ~BANFLAG_AUTHID;
    1.19 +#endif
    1.20  
    1.21  	cell_t handled = 0;
    1.22  	if (ban_cmd[0] != '\0' && g_pOnBanClient->GetFunctionCount() > 0)