Skip to content

Commit

Permalink
Update APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
ntowle committed Nov 8, 2023
1 parent 4ea13ae commit 3d89064
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ ignore = {
"212/self"
}
globals = {
"CreateFrame",
"C_AddOns",
"C_ChatBubbles",
"UnitClass",
"DisableAddOn",
"MuteSoundFile",
"ChatFrame_AddMessageEventFilter",
"CreateFrame",
"MuteSoundFile",
"UnitClass",
"WorldFrame"
}
4 changes: 2 additions & 2 deletions SilenceBanLu.lua
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
-- globals
local CreateFrame, C_ChatBubbles, UnitClass, DisableAddOn, MuteSoundFile, ChatFrame_AddMessageEventFilter, WorldFrame = CreateFrame, C_ChatBubbles, UnitClass, DisableAddOn, MuteSoundFile, ChatFrame_AddMessageEventFilter, WorldFrame
local CreateFrame, C_ChatBubbles, UnitClass, C_AddOns, MuteSoundFile, ChatFrame_AddMessageEventFilter, WorldFrame = CreateFrame, C_ChatBubbles, UnitClass, C_AddOns, MuteSoundFile, ChatFrame_AddMessageEventFilter, WorldFrame

-- disable the addon for non-Monk players
if select(2, UnitClass('player')) ~= "MONK" then
DisableAddOn("SilenceBanLu")
C_AddOns.DisableAddOn("SilenceBanLu")
return
end

Expand Down

0 comments on commit 3d89064

Please sign in to comment.