add rules & add 'show-content-access' rule
This commit is contained in:
@@ -204,6 +204,11 @@ void scripting::cleanup() {
|
||||
}
|
||||
lua::pop(L);
|
||||
|
||||
lua::getglobal(L, "rules");
|
||||
lua::getfield(L, "clear");
|
||||
lua::call_nothrow(L, 0);
|
||||
lua::pop(L);
|
||||
|
||||
if (lua::getglobal(L, "__scripts_cleanup")) {
|
||||
lua::call_nothrow(L, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user