funkydude / BadBoy

A simple spam blocker & reporter for World of Warcraft.
26 stars 7 forks source link

Lua errors after v8.0.11 update #103

Closed mLgz0rn closed 6 years ago

mLgz0rn commented 6 years ago

Been getting lua errors since I updated to the new version.

2x BadBoy\BadBoy-v8.0.10.lua:308: bad argument #1 to 'CanReportPlayer' (Usage: local canReport = C_ChatInfo.CanReportPlayer(playerLocation))
[C]: ?
BadBoy\BadBoy-v8.0.10.lua:308: in function <BadBoy\BadBoy.lua:282>

Locals:
(*temporary) = <table> {
 IsBattleNetGUID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:63
 SetGUID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:47
 IsCommunityData = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:129
 IsBattlefieldScoreIndex = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:99
 SetUnit = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:71
 IsGUID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:59
 chatLineID = 67
 IsChatLineID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:87
 Clear = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:144
 IsValid = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:51
 SetVoiceID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:107
 IsVoiceID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:113
 GetBattlefieldScoreIndex = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:103
 IsUnit = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:75
 SetCommunityInvitation = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:133
 GetVoiceID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:117
 IsCommunityInvitation = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:139
 GetChatLineID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:91
 ClearAndSetField = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:158
 GetGUID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:67
 GetUnit = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:79
 SetChatLineID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:83
 SetBattlefieldScoreIndex = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:95
 SetCommunityData = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:121
}
5x BadBoy\BadBoy-v8.0.10.lua:238: bad argument #1 to 'CanReportPlayer' (Usage: local canReport = C_ChatInfo.CanReportPlayer(playerLocation))
[C]: ?
BadBoy\BadBoy-v8.0.10.lua:238: in function <BadBoy\BadBoy.lua:232>
SharedXML\C_TimerAugment.lua:16: in function <SharedXML\C_TimerAugment.lua:14>

Locals:
(*temporary) = <table> {
 IsBattleNetGUID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:63
 SetGUID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:47
 IsCommunityData = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:129
 IsBattlefieldScoreIndex = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:99
 SetUnit = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:71
 IsGUID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:59
 chatLineID = 67
 IsChatLineID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:87
 Clear = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:144
 IsValid = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:51
 SetVoiceID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:107
 IsVoiceID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:113
 GetBattlefieldScoreIndex = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:103
 IsUnit = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:75
 SetCommunityInvitation = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:133
 GetVoiceID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:117
 IsCommunityInvitation = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:139
 GetChatLineID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:91
 ClearAndSetField = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:158
 GetGUID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:67
 GetUnit = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:79
 SetChatLineID = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:83
 SetBattlefieldScoreIndex = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:95
 SetCommunityData = <function> defined @FrameXML\ObjectAPI\PlayerLocation.lua:121
}
funkydude commented 6 years ago

Duplicate of https://github.com/funkydude/BadBoy/issues/95