Temporary fix for the "You aren't in a party." spam in battlegrounds, caused by old addons calling SendAddonMessage to "RAID" when in battlegrounds or arenas. This is a bug on Blizzard's part introduced in 3.2.0.
Type /yaiap and it will print out debug text every time an addon triggers the "You aren't in a party." message, best used before joining a battleground.
Sample code for fixing this problem:
function SendAddonMessageToRaid(pre, msg) if GetRealNumRaidMembers() == 0 or GetRealNumPartyMembers() == 0 then return end SendAddonMessage(pre, msg, "RAID") end
Also fixes "You are not in a guild." messages.