Files
praxisandClaude Fable 5.2 45ecd73fe0 Evidence records
1888 files, from working commit b1a079a.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
2026-11-19 01:32:48 +02:00

29 lines
812 B
Lua

-- Original70334 SlashCommands.lua:1223-1237
SlashCommandUtil.CheckAddSlashCommand(SLASH_COMMAND.SCRIPT, SLASH_COMMAND_CATEGORY.DEBUG_COMMAND, function(msg)
if Kiosk.IsEnabled() then
return;
end
local userScriptsDisabled = C_GameRules.IsGameRuleActive(Enum.GameRule.UserScriptsDisabled);
if ( not C_AddOns.GetScriptsDisallowedForBeta() and not userScriptsDisabled ) then
if ( not AreDangerousScriptsAllowed() ) then
StaticPopup_Show("DANGEROUS_SCRIPTS_WARNING");
return;
end
RunScript(msg);
end
end);
-- Original70334 GameDialogDefs.lua:3197-3207
StaticPopupDialogs["DANGEROUS_SCRIPTS_WARNING"] = {
text = DANGEROUS_SCRIPTS_WARNING,
button1 = YES,
button2 = NO,
OnAccept = function(dialog, data)
SetAllowDangerousScripts(true);
end,
exclusive = 1,
whileDead = 1,
showAlert = 1,
};