Accountant

Accountant

465k Downloads

Cannot copy player's name from chat to clipboard

m-berger22 opened this issue · 0 comments

commented

Describe the bug
When right clicking and copying a player's name from the chat frame, the addon prevents you from copying it and gives an error. This only happens when the player uses a non-English character (e.g. Jøn). This does not happen when copying from guild tab or the chat history in the guild frame, only in the regular chat frame. The Lua error is:

2x [ADDON_ACTION_FORBIDDEN] AddOn 'Accountant' tried to call the protected function 'CopyToClipboard()'.
[string "@!BugGrabber/BugGrabber.lua"]:485: in function <!BugGrabber/BugGrabber.lua:485>
[string "=[C]"]: in function `CopyToClipboard'
[string "@Blizzard_UnitPopupShared/UnitPopupSharedButtonMixins.lua"]:1337: in function <...zard_UnitPopupShared/UnitPopupSharedButtonMixins.lua:1336>
[string "=(tail call)"]: ?
[string "=(tail call)"]: ?
[string "=[C]"]: in function `securecallfunction'
[string "@Blizzard_Menu/Menu.lua"]:868: in function `Pick'
[string "@Blizzard_Menu/MenuTemplates.lua"]:74: in function <Blizzard_Menu/MenuTemplates.lua:68>

Locals:
_ = Frame {
}
event = "ADDON_ACTION_FORBIDDEN"
events = <table> {
}

To Reproduce
Steps to reproduce the behavior:

  1. Find somebody in chat that uses an alt code character in their name
  2. Right click their name and click "Copy Character Name"
  3. See error

Expected behavior
The addon does not block the copy feature.

Addon version:

  • Version 11.0.3