Carbonite Maps

Carbonite Maps

6M Downloads

AddOn 'Carbonite' tried to call the protected function 'UNKNOWN()'.

DaveJ61 opened this issue · 2 comments

commented

I waded through the code and found a possible solution which appears to have fixed this:-

I changed line 1269:-
local ok = pcall (SendChatMessage, msg, typ, nil, num)

to:-
local ok = pcall (SendChatMessageFixed, msg, typ, nil, num)

This seems to have resolved the following:-
29x [ADDON_ACTION_BLOCKED] AddOn 'Carbonite' tried to call the protected function 'UNKNOWN()'.
!BugGrabber\BugGrabber.lua:519: in function <!BugGrabber\BugGrabber.lua:519>
[C]: ?
[C]: ?
[C]: ?
[C]: in function pcall' Carbonite\NxCom.lua:1269: in function SendChatMessageFixed'
Carbonite\NxCom.lua:1624: in function OnUpdate' Carbonite\Carbonite-@[email protected]:1329: in function NXOnUpdate'
[string ":OnUpdate"]:1: in function <[string ":OnUpdate"]:1>

Locals:
InCombatSkipped

I tried to create a pull request but was being denied but can't figure out why...

Dave Johns

commented

Sorry your solution was bad, it fixed error but made msg never get send. Fixed.

commented