Skip to content

Commit

Permalink
Made sure both the reset and broadcast command show their respective …
Browse files Browse the repository at this point in the history
…confirmation dialog
  • Loading branch information
papa-smurf committed Dec 21, 2020
1 parent a2bfaf6 commit 100fd21
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions Classes/Commands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,11 @@ Commands.import = function() App.Importer:draw(); end
-- Export data from the addon to use on our website
Commands.export = function() App.Exporter:draw(); end

-- Broadcast our current dkp / loot tables to everyone
Commands.broadcast = function()
if (not App.User.isOfficer) then
return App:warning("This feature requires officer privileges");
end
-- Reset the dkp and loot history tables
Commands.reset = function() StaticPopup_Show("RESET_TABLES_CONFIRMATION"); end

App.Sync:broadcast();
end
-- Broadcast our current dkp / loot tables to everyone
Commands.broadcast = function() StaticPopup_Show("BROADCAST_TABLES_CONFIRMATION"); end

-- Check if everyone is running the most up-to-date version
Commands.version = function() App.Version:inspectGroup(); end
Expand Down

0 comments on commit 100fd21

Please sign in to comment.