Skip to content

Commit

Permalink
Fix CSV delimiter issue
Browse files Browse the repository at this point in the history
Fixes #31
  • Loading branch information
Anonomit committed Nov 12, 2024
1 parent e248a96 commit 796b9e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Windows/ServerExportWindow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,10 +69,14 @@ function LootReserve.Server.Export:UpdateRollsExportText(onlySession)
local highest = LootReserve.Server:GetWinningRollAndPlayers(roll);
_, max = LootReserve.Server:ConvertFromTieredRoll(highest);
end
local name = roll.Item:GetName();
if name:find(",") then
name = '"' .. name .. '"'
end
text = text .. format(self.rollsExportFormatPattern,
roll.StartTime,
roll.Item:GetID(),
roll.Item:GetName(),
name,
winner,
(roll.Custom or roll.Disenchant) and 0 or 1,
roll.RaidRoll and 1 or 0,
Expand Down

0 comments on commit 796b9e7

Please sign in to comment.