one click sign up (bug)
yourapple opened this issue ยท 0 comments
When you are in a team, but you are not the leader, and you can still click to apply for a team at this time,In fact, the "sign up" button is not available. At this time, an error will occur and you must log in again.
The following code is to fix this BUG
hooksecurefunc("LFGListSearchEntry_OnClick", function (self, button)
if not PremadeGroupsFilterSettings.oneClickSignUp then return end
local panel = LFGListFrame.SearchPanel
if button ~= "RightButton" and LFGListSearchPanelUtil_CanSelectResult(self.resultID) and panel.SignUpButton:IsEnabled() then
if panel.selectedResult ~= self.resultID then
LFGListSearchPanel_SelectResult(panel, self.resultID)
end
LFGListSearchPanel_SignUp(panel)
end
end)