Legacy-of-Sylvanaar / wow-instant-messenger

WIM (WoW Instant Messenger) is a World of Warcraft addon which brings an instant messenger feel to communication in game.
https://www.curseforge.com/wow/addons/wim-3
MIT License
11 stars 8 forks source link

fix bnet user messaging #24

Closed cxmplex closed 1 year ago

cxmplex commented 1 year ago

When trying to send a message to a battle.net friend I get the following:

Issue Message: Interface/AddOns/WIM/Sources/ToolBox.lua:119: attempt to concatenate local 'name' (a table value) Time: Tue Dec 6 14:14:43 2022 Count: 1 Stack: Interface/AddOns/WIM/Sources/ToolBox.lua:119: attempt to concatenate local 'name' (a table value)

[string "@Interface/AddOns/WIM/Sources/ToolBox.lua"]:119: in function `GetReadableName' [string "@Interface/AddOns/WIM/Sources/WindowHandler.lua"]:1356: in function <Interface/AddOns/WIM/Sources/WindowHandler.lua:1329> [string "@Interface/AddOns/WIM/Sources/WindowHandler.lua"]:1440: in function <Interface/AddOns/WIM/Sources/WindowHandler.lua:1389>

[string "@Interface/AddOns/WIM/Modules/WhisperEngine.lua"]:200: in function <Interface/AddOns/WIM/Modules/WhisperEngine.lua:179> [string "@Interface/AddOns/WIM/Modules/WhisperEngine.lua"]:716: in function <Interface/AddOns/WIM/Modules/WhisperEngine.lua:693> string "=[C]": in function ChatFrame_OpenChat' [string "@Interface/FrameXML/ChatFrame.lua"]:4156: in function <Interface/FrameXML/ChatFrame.lua:4151> [string "=[C]"]: in functionChatFrame_SendBNetTell' [string "@Interface/FrameXML/FriendsFrame.lua"]:984: in function <Interface/FrameXML/FriendsFrame.lua:976>


This PR fixes that issue.