From: Vsevolod Stakhov Date: Fri, 24 Mar 2017 09:53:29 +0000 (+0000) Subject: [Minor] Do not break old scripts and rules X-Git-Tag: 1.5.4~42 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7bcbbce36aa57fae1c7417db542155d1e137892f;p=thirdparty%2Frspamd.git [Minor] Do not break old scripts and rules --- diff --git a/src/lua/lua_config.c b/src/lua/lua_config.c index 3179c29fc9..636f4343ba 100644 --- a/src/lua/lua_config.c +++ b/src/lua/lua_config.c @@ -681,7 +681,10 @@ lua_check_monitored (lua_State * L, gint pos) static gint lua_config_get_api_version (lua_State *L) { - return luaL_error (L, "obsolete function"); + msg_warn ("get_api_version is deprecated, do not use it"); + lua_pushnumber (L, 100); + + return 1; } static gint