Skip to content

Commit

Permalink
Update blockedFunctions
Browse files Browse the repository at this point in the history
  • Loading branch information
doadin committed Jul 30, 2024
1 parent 5404b90 commit d103f33
Showing 1 changed file with 36 additions and 23 deletions.
59 changes: 36 additions & 23 deletions Modules/Custom.lua
Original file line number Diff line number Diff line change
Expand Up @@ -132,29 +132,42 @@ end
For more information see WeakAuras License
]]
local blockedFunctions = {
getfenv = true,
setfenv = true,
loadstring = true,
pcall = true,
SendMail = true,
SetTradeMoney = true,
AddTradeMoney = true,
PickupTradeMoney = true,
PickupPlayerMoney = true,
TradeFrame = true,
MailFrame = true,
EnumerateFrames = true,
RunScript = true,
AcceptTrade = true,
SetSendMailMoney = true,
EditMacro = true,
SlashCmdList = true,
DevTools_DumpCommand = true,
hash_SlashCmdList = true,
CreateMacro = true,
SetBindingMacro = true,
GuildDisband = true,
GuildUninvite = true,
-- Lua functions that may allow breaking out of the environment
getfenv = true,
setfenv = true,
loadstring = true,
pcall = true,
xpcall = true,
-- blocked WoW API
SendMail = true,
SetTradeMoney = true,
AddTradeMoney = true,
PickupTradeMoney = true,
PickupPlayerMoney = true,
TradeFrame = true,
MailFrame = true,
EnumerateFrames = true,
RunScript = true,
AcceptTrade = true,
SetSendMailMoney = true,
EditMacro = true,
DevTools_DumpCommand = true,
hash_SlashCmdList = true,
RegisterNewSlashCommand = true,
CreateMacro = true,
SetBindingMacro = true,
GuildDisband = true,
GuildUninvite = true,
securecall = true,
DeleteCursorItem = true,
ChatEdit_SendText = true,
ChatEdit_ActivateChat = true,
ChatEdit_ParseText = true,
ChatEdit_OnEnterPressed = true,
GetButtonMetatable = true,
GetEditBoxMetatable = true,
GetFontStringMetatable = true,
GetFrameMetatable = true,
}

local function forbidden()
Expand Down

0 comments on commit d103f33

Please sign in to comment.