Makes sense, final code:
Lua Code:
local f = CreateFrame("frame")
f:RegisterEvent("PLAYER_ENTERING_WORLD")
f:SetScript("OnEvent", function()
f:UnregisterEvent("PLAYER_ENTERING_WORLD")
local orig = BNToastFrame_AddToast
function BNToastFrame_AddToast(toastType, toastData)
if toastType ~= 3 or select(12, BNGetFriendInfoByID(toastData)) ~= "(OQ) " then
return orig(toastType, toastData)
end
end
end)
Alternatively if for some reason there is a deviation in the exact string this would fix the issue most likely:
Lua Code:
if toastType ~= 3 or not strfind(strupper(select(12, BNGetFriendInfoByID(toastData))),"OQ") then