Skip to content

Commit

Permalink
CopyChat: Remove the no-strip option
Browse files Browse the repository at this point in the history
  • Loading branch information
sylvanaar committed May 31, 2020
1 parent 476f709 commit 809375c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
2 changes: 0 additions & 2 deletions frames/pratcc.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@
<Size>
<AbsDimension x="450" y="344"/>
</Size>
<Scripts>
</Scripts>
<FontString inherits="ChatFontNormal"/>
</EditBox>
</ScrollChild>
Expand Down
8 changes: 4 additions & 4 deletions modules/CopyChat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -272,15 +272,15 @@ end
self:DoCopyChat(frame, noshow)
end

function module:ScrapeFullChatFrame(frame, nostrip)
self:DoCopyChatScroll(frame, nostrip)
function module:ScrapeFullChatFrame(frame)
self:DoCopyChatScroll(frame)
end

function module:MenuScrape()
self:ScrapeChatFrame(SELECTED_CHAT_FRAME)
end

function module:DoCopyChatScroll(frame, nostrip)
function module:DoCopyChatScroll(frame)
local scrapelines = {}
local str

Expand All @@ -292,7 +292,7 @@ end

if msg then
local stripped = msg:gsub("|K.-|k", "<BNET REMOVED>")
table.insert(scrapelines, nostrip and msg or stripped)
table.insert(scrapelines, stripped)
end
end

Expand Down

0 comments on commit 809375c

Please sign in to comment.