From b5acec0a3c5701c53854ff7afdf4008863e6e8df Mon Sep 17 00:00:00 2001 From: sapier Date: Tue, 29 Apr 2014 17:47:34 +0200 Subject: Add proper lua api deprecated handling --- src/script/lua_api/l_util.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/script/lua_api/l_util.cpp') diff --git a/src/script/lua_api/l_util.cpp b/src/script/lua_api/l_util.cpp index 90a1d77ab..7babaaf71 100644 --- a/src/script/lua_api/l_util.cpp +++ b/src/script/lua_api/l_util.cpp @@ -78,6 +78,11 @@ int ModApiUtil::l_log(lua_State *L) level = LMT_ACTION; else if(levelname == "verbose") level = LMT_VERBOSE; + else if (levelname == "deprecated") { + log_deprecated(L,text); + return 0; + } + } log_printline(level, text); return 0; -- cgit v1.2.3