mirror of
https://github.com/bol-van/zapret2.git
synced 2026-03-22 17:25:47 +00:00
fix missing update
This commit is contained in:
15
nfq2/lua.c
15
nfq2/lua.c
@@ -1,4 +1,5 @@
|
||||
#include <time.h>
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "lua.h"
|
||||
#include "params.h"
|
||||
@@ -2331,6 +2332,20 @@ static bool lua_desync_functions_exist()
|
||||
return true;
|
||||
}
|
||||
|
||||
bool lua_test_init_script_files(void)
|
||||
{
|
||||
struct str_list *str;
|
||||
LIST_FOREACH(str, ¶ms.lua_init_scripts, next)
|
||||
{
|
||||
if (str->str[0]=='@' && !file_open_test(str->str+1, O_RDONLY))
|
||||
{
|
||||
DLOG_ERR("LUA file '%s' not accessible\n",str->str+1);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
static bool lua_init_scripts(void)
|
||||
{
|
||||
struct str_list *str;
|
||||
|
||||
Reference in New Issue
Block a user