From 7bcbbce36aa57fae1c7417db542155d1e137892f Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Fri, 24 Mar 2017 09:53:29 +0000 Subject: [PATCH] [Minor] Do not break old scripts and rules --- src/lua/lua_config.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.47.3