lua_getglobal(L, "require");
lua_pushstring(L, "rspamadm.confighelp_plugins");
- if (lua_pcall(L, 1, 1, 0) != LUA_OK) {
+ if (lua_pcall(L, 1, 1, 0) != 0) {
rspamd_fprintf(stderr, "cannot load confighelp_plugins module: %s\n",
lua_tostring(L, -1));
lua_pop(L, 1);
return NULL;
}
- if (lua_pcall(L, 0, 1, 0) != LUA_OK) {
+ if (lua_pcall(L, 0, 1, 0) != 0) {
rspamd_fprintf(stderr, "cannot execute confighelp_plugins function: %s\n",
lua_tostring(L, -1));
lua_pop(L, 1);