From 7d2d16ae03241f76d32cc0b5e5897a6a03525e5c Mon Sep 17 00:00:00 2001 From: Sattva Date: Sat, 27 May 2023 15:45:08 +0300 Subject: [PATCH] InviteFromWhispers - Fixed module. Fixed by using Kader's Libcompat backported functions for UnitIsGroupLeader & UnitIsGroupAssistant --- Changelog and Notes.txt | 1 + Leatrix_Plus.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog and Notes.txt b/Changelog and Notes.txt index 97506d8..69d4519 100644 --- a/Changelog and Notes.txt +++ b/Changelog and Notes.txt @@ -26,6 +26,7 @@ Accept Ress - Will it ever accept ressurection if ressurecter in combat ? -- Functions to-do: -------------------------------------------------------------------------------- +Social - Add Block Guild Invites AutoGossip - Add user defined NPCID to automate gossipX (any option) diff --git a/Leatrix_Plus.lua b/Leatrix_Plus.lua index 95d05a7..a13a401 100644 --- a/Leatrix_Plus.lua +++ b/Leatrix_Plus.lua @@ -12256,7 +12256,7 @@ function LeaPlusLC:FriendCheck(name) ---------------------------------------------------------------------- if event == "CHAT_MSG_WHISPER" or event == "CHAT_MSG_BN_WHISPER" then - if (not UnitExists("party1") or UnitIsGroupLeader("player") or UnitIsGroupAssistant("player")) and strlower(strtrim(arg1)) == strlower(LeaPlusLC["InvKey"]) then + if (not UnitExists("party1") or LibCompat.UnitIsGroupLeader("player") or LibCompat.UnitIsGroupAssistant("player")) and strlower(strtrim(arg1)) == strlower(LeaPlusLC["InvKey"]) then if not LeaPlusLC:IsInLFGQueue() then if event == "CHAT_MSG_WHISPER" then local void, void, void, void, viod, void, void, void, void, guid = ...