mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-24 13:55:36 +03:00
Fixed an issue where backwards amx mod compatibility layer wasn't transparent.
This commit is contained in:
parent
09d46aa025
commit
e35a8326d5
@ -1535,6 +1535,18 @@ static cell AMX_NATIVE_CALL server_cmd(AMX *amx, cell *params) /* 1 param */
|
||||
g_langMngr.SetDefLang(LANG_SERVER);
|
||||
char* cmd = format_amxstring(amx, params, 1, len);
|
||||
|
||||
if (amx->flags & AMX_FLAG_OLDFILE)
|
||||
{
|
||||
if (strncmp("meta ",cmd,5)==0)
|
||||
{
|
||||
return len+1;
|
||||
}
|
||||
if (strncmp("quit", cmd,4)==0)
|
||||
{
|
||||
return len+1;
|
||||
}
|
||||
}
|
||||
|
||||
cmd[len++] = '\n';
|
||||
cmd[len] = 0;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user