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

Battle.net messages throwing error #216

Open
jasonb4610 opened this issue May 19, 2021 · 1 comment
Open

Battle.net messages throwing error #216

jasonb4610 opened this issue May 19, 2021 · 1 comment

Comments

@jasonb4610
Copy link

Seems to be consistent for all incoming and outgoing battle net messages. Full stack trace included below.

Message: Interface\AddOns\Prat-3.0\modules\PlayerNames.lua:1262: attempt to index global 'C_BattleNet' (a nil value)
Time: Wed May 19 13:05:06 2021
Count: 13
Stack: Interface\AddOns\Prat-3.0\modules\PlayerNames.lua:1262: attempt to index global 'C_BattleNet' (a nil value)
[string "@Interface\AddOns\Prat-3.0\modules\PlayerNames.lua"]:1262: in function <Interface\AddOns\Prat-3.0\modules\PlayerNames.lua:1259>
[string "@Interface\AddOns\Prat-3.0\modules\PlayerNames.lua"]:1627: in function `FormatPlayer'
[string "@Interface\AddOns\Prat-3.0\modules\PlayerNames.lua"]:1744: in function `?'
[string "@Interface\AddOns\AtlasLootClassic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua"]:119: in function <...sic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:119>
[string "=[C]"]: ?
[string "@Interface\AddOns\AtlasLootClassic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua"]:29: in function <...sic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua:25>
[string "@Interface\AddOns\AtlasLootClassic\Libs\CallbackHandler-1.0\CallbackHandler-1.0.lua"]:64: in function `Fire'
[string "@Interface\AddOns\Prat-3.0\addon\addon.lua"]:673: in function <Interface\AddOns\Prat-3.0\addon\addon.lua:613>
[string "=(tail call)"]: ?
[string "@Interface\FrameXML\ChatFrame.lua"]:2930: in function `ChatFrame_OnEvent'
[string "*:OnEvent"]:1: in function <[string "*:OnEvent"]:1>

I added some simple code to suppress the message but I doubt it is the correct fix.
Putting

if not C_BattleNet then return end

seems to suppress the message

@Maas1337
Copy link

same here

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

2 participants