Skip to content

Commit

Permalink
Timestamps: Don't add a timestamp if the message has been modified by…
Browse files Browse the repository at this point in the history
… something else
  • Loading branch information
sylvanaar committed Jun 12, 2020
1 parent 66629df commit d8fbe03
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions modules/Timestamps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -306,8 +306,10 @@ Prat:AddModuleToLoad(function()
------------------------------------------------]] --
function module:AddMessage(frame, text, ...)
if self.db.profile.on and self.db.profile.show and self.db.profile.show[frame:GetName()] and not Prat.loading then
frame.historyBuffer:GetEntryAtIndex(1).message =
self:InsertTimeStamp(frame.historyBuffer:GetEntryAtIndex(1).message, frame)
local entry = frame.historyBuffer:GetEntryAtIndex(1)
if text == entry.message then
entry.message = self:InsertTimeStamp(entry.message, frame)
end
end
end

Expand Down

0 comments on commit d8fbe03

Please sign in to comment.