Fix FriendsFrame_OnEvent to pass additional parameters so it actually works naturally

This commit is contained in:
2025-05-25 10:45:17 +02:00
parent bdf5afe436
commit 1168876dcc

View File

@@ -725,8 +725,8 @@ shared.Whoer = {
Tick()
end
local original_FriendsFrame_OnEvent = FriendsFrame_OnEvent
local function my_FriendsFrame_OnEvent(event)
if not (event == "WHO_LIST_UPDATE" and whoWaiting) then original_FriendsFrame_OnEvent() end
local function my_FriendsFrame_OnEvent(self, event, ...)
if not (event == "WHO_LIST_UPDATE" and whoWaiting) then original_FriendsFrame_OnEvent(self, event, ...) end
end
FriendsFrame_OnEvent = my_FriendsFrame_OnEvent