From e35a8326d5f69addfd9594c8c12a58a2a88e1489 Mon Sep 17 00:00:00 2001 From: Steve Dudenhoeffer Date: Tue, 20 Feb 2007 22:25:17 +0000 Subject: [PATCH] Fixed an issue where backwards amx mod compatibility layer wasn't transparent. --- amxmodx/amxmodx.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/amxmodx/amxmodx.cpp b/amxmodx/amxmodx.cpp index 4dee3cc2..0dfb0a79 100755 --- a/amxmodx/amxmodx.cpp +++ b/amxmodx/amxmodx.cpp @@ -1534,6 +1534,18 @@ static cell AMX_NATIVE_CALL server_cmd(AMX *amx, cell *params) /* 1 param */ int len; 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;