Thread Tools Display Modes
Prev Previous Post   Next Post Next
11-11-22, 11:57 AM   #1
gmarco
An Onyxian Warder
 
gmarco's Avatar
AddOn Author - Click to view addons
Join Date: Dec 2009
Posts: 362
avoid taint

hi all,

I have an LDB addon that when you press the left mouse button calls this:

Lua Code:
  1. if button == "LeftButton" then
  2.     ToggleGuildFrame()
  3.         if IsInGuild() then    
  4.             CommunitiesFrame:SetDisplayMode(COMMUNITIES_FRAME_DISPLAY_MODES.ROSTER)
  5.         end
  6. end

Then all the guild panel is tainted and every operations trigger an error like this:

Lua Code:
  1. x [ADDON_ACTION_FORBIDDEN] AddOn 'gmGuildFriends' tried to call the protected function 'SetNote()'.
  2. [string "@Interface/AddOns/!BugGrabber/BugGrabber.lua"]:480: in function <Interface/AddOns/!BugGrabber/BugGrabber.lua:480>
  3. [string "=[C]"]: in function `SetNote'
  4. [string "@Interface/FrameXML/StaticPopup.lua"]:2686: in function `EditBoxOnEnterPressed'
  5. [string "@Interface/FrameXML/StaticPopup.lua"]:5135: in function `StaticPopup_EditBoxOnEnterPressed'
  6. [string "*StaticPopup.xml:148_OnEnterPressed"]:1: in function <[string "*StaticPopup.xml:148_OnEnterPressed"]:1>

How I can do to prevent this ?
Thanks so much in advance for any helps.
__________________
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.
  Reply With Quote
 

WoWInterface » Developer Discussions » Lua/XML Help » avoid taint


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off