[w/ fix] FriendsFrame_Update tainted by CensusPlus

Found a bug with the CensusPlus UI Mod? Post it here!
Post Reply
Polarina
Posts: 3
Joined: Thu Nov 22, 2007 11:47 am

[w/ fix] FriendsFrame_Update tainted by CensusPlus

Post by Polarina »

I had CensusPlus taking "censuses" while I was questing in Nagrand. I happened to be in combat during the time that happened. Immediately after the taint occurred, the guild window popped up. The taint log follows:

Code: Select all

11/26 21:11:47.054  Global variable FriendsFrame_Update tainted by CensusPlus - Interface\AddOns\CensusPlus\CensusPlus.lua:625 CensusPlus_OnLoad()
11/26 21:11:47.054      CensusPlus:OnLoad()
11/26 21:11:47.054  Execution tainted by CensusPlus while reading FriendsFrame_Update - Interface\FrameXML\FriendsFrame.lua:1133 InGuildCheck()
11/26 21:11:47.054      Interface\FrameXML\FriendsFrame.lua:86 g_Pre_FriendsFrameOnShowOverride()
11/26 21:11:47.054      Interface\AddOns\CensusPlus\CensusPlus.lua:668 FriendsFrame_OnShow()
11/26 21:11:47.054      FriendsFrame:OnShow()
11/26 21:11:47.054      FriendsFrame:Show()
11/26 21:11:47.054      Interface\FrameXML\UIParent.lua:1184 SetUIPanel()
11/26 21:11:47.054      Interface\FrameXML\UIParent.lua:983 ShowUIPanel()
11/26 21:11:47.054      Interface\FrameXML\FriendsFrame.lua:408 GuildStatus_Update()
11/26 21:11:47.055      Interface\FrameXML\FriendsFrame.lua:756 FriendsFrame_OnEvent()
11/26 21:11:47.055      FriendsFrame:OnEvent()
11/26 21:11:47.055  An action was blocked in combat because of taint from CensusPlus - VoiceChatTalkers:Hide()
11/26 21:11:47.055      Interface\FrameXML\VoiceChat.lua:268 VoiceChat_Toggle()
11/26 21:11:47.055      Interface\FrameXML\FriendsFrame.lua:87 g_Pre_FriendsFrameOnShowOverride()
11/26 21:11:47.055      Interface\AddOns\CensusPlus\CensusPlus.lua:668 FriendsFrame_OnShow()
11/26 21:11:47.055      FriendsFrame:OnShow()
11/26 21:11:47.055      FriendsFrame:Show()
11/26 21:11:47.055      Interface\FrameXML\UIParent.lua:1184 SetUIPanel()
11/26 21:11:47.055      Interface\FrameXML\UIParent.lua:983 ShowUIPanel()
11/26 21:11:47.055      Interface\FrameXML\FriendsFrame.lua:408 GuildStatus_Update()
11/26 21:11:47.055      Interface\FrameXML\FriendsFrame.lua:756 FriendsFrame_OnEvent()
11/26 21:11:47.055      FriendsFrame:OnEvent()
I did not have Voice Chat enabled. However, I was grouping with other players.
Last edited by Polarina on Fri Dec 07, 2007 3:18 pm, edited 1 time in total.

User avatar
Rollie
Site Admin
Posts: 4783
Joined: Sun Nov 28, 2004 11:52 am
Location: Austin, TX
Contact:

Post by Rollie »

Thank you for the info. Others have described this as well but as of yet I have been unable to reproduce it =/
phpbb:phpinfo()

Polarina
Posts: 3
Joined: Thu Nov 22, 2007 11:47 am

Post by Polarina »

A guess of what might cause this, it happened again to me.

Star the "census" process and get into combat.
While in combat, and taking censuses, have a friend to log in.
If nothing happens, try to click a item link from the chat frame and press the X button on the tooltip.

I hope that helps,
Polarina.

Polarina
Posts: 3
Joined: Thu Nov 22, 2007 11:47 am

Post by Polarina »

I found a way to fix this bug!

With patch 2.3, Blizzard added a new function:

Code: Select all

local frame_1, ..., frame_n = GetFramesRegisteredForEvent&#40;<event>&#41;;
Just call that function, do a:

Code: Select all

local i = result&#58;GetName&#40;&#41;;
in a for loop and check if it matches "FriendsFrame". If it does, just do something like this:

Code: Select all

result&#58;UnregisterEvent&#40;"WHO_LIST_UPDATE"&#41;;
SetWhoToUI&#40;"<who>"&#41;;

function CensusPlus_OnEvent&#40;...&#41;
    -- Do something...
    
    result&#58;RegisterEvent&#40;"WHO_LIST_UPDATE"&#41;;
end

Hybuir
Gear Dependent Squirrel
Gear Dependent Squirrel
Posts: 1471
Joined: Tue Sep 06, 2005 6:22 am
Location: Austin, TX
Contact:

Post by Hybuir »

I'll try to check this out when i get home :)

Post Reply