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
@ -1534,6 +1534,18 @@ static cell AMX_NATIVE_CALL server_cmd(AMX *amx, cell *params) /* 1 param */
|
|||||||
int len;
|
int len;
|
||||||
g_langMngr.SetDefLang(LANG_SERVER);
|
g_langMngr.SetDefLang(LANG_SERVER);
|
||||||
char* cmd = format_amxstring(amx, params, 1, len);
|
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++] = '\n';
|
||||||
cmd[len] = 0;
|
cmd[len] = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user