Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to copy name from WIM message window #88

Open
hrlmartins opened this issue Jul 27, 2024 · 4 comments
Open

Unable to copy name from WIM message window #88

hrlmartins opened this issue Jul 27, 2024 · 4 comments

Comments

@hrlmartins
Copy link

hrlmartins commented Jul 27, 2024

Describe the bug
When trying to copy the name of the player I'm chatting with it throws an error and does not copy the name.

Addon Version
3.12.1

To Reproduce
Steps to reproduce the behavior:

  1. Open chat with friend
  2. Wait for some reply
  3. Right click the nick and choose "Copy Character Name""
  4. See error

Expected behavior
Being able to copy the name of the player I'm chatting with.

Not sure if just the name or the name and the server should be copied (now with cross-realm guilds it would be great)

Additional context
Providing the stacktrace:

3x [ADDON_ACTION_FORBIDDEN] AddOn 'WIM' 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"]:1340: in function <...zard_UnitPopupShared/UnitPopupSharedButtonMixins.lua:1339>
[string "=(tail call)"]: ?
[string "=(tail call)"]: ?
[string "=[C]"]: in function `securecallfunction'
[string "@Blizzard_Menu/Menu.lua"]:854: in function `Pick'
[string "@Blizzard_Menu/MenuTemplates.lua"]:64: in function <Blizzard_Menu/MenuTemplates.lua:58>

Locals:
_ = Frame {
}
event = "ADDON_ACTION_FORBIDDEN"
events = <table> {
}
@Pazza
Copy link

Pazza commented Jul 27, 2024

Hmm... Looks like its a protected function now. I wont be able to call it, I will see if I can instead handle it like we do URLs and show a popup with selectable/copiable text.

@MelchiorGaspar
Copy link

hi @Pazza
yeah I just got this error tonight too...
bummer.. why does Blizzard cause so much trouble...
thx for working on a fix. or at least a work around...

@greg602
Copy link

greg602 commented Oct 25, 2024

Just checking in for an update on this one. Thanks for your support.

Also want to note that I am able to properly copy character names from other third party addons - such as "Inven Raid Frames" addon.

1x [ADDON_ACTION_FORBIDDEN] AddOn 'WIM' 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 =

{
}

@mohcow
Copy link

mohcow commented Jan 12, 2025

Still broken it seems :( would a workaround like adding a "copy character name" entry in the profile links frame work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants