- } else if (!strcasecmp(c->argv[2]->ptr,"lua-protect-globals")) {
- int enable = yesnotoi(o->ptr);
-
- if (enable == -1) goto badfmt;
- if (enable == 0 && server.lua_protect_globals == 1) {
- scriptingDisableGlobalsProtection(server.lua);
- } else if (enable && server.lua_protect_globals == 0) {
- scriptingEnableGlobalsProtection(server.lua);
- }
- server.lua_protect_globals = enable;