InviteFromWhispers - Fixed module.

Fixed by using Kader's Libcompat backported functions for UnitIsGroupLeader & UnitIsGroupAssistant
This commit is contained in:
Sattva
2023-05-27 15:45:08 +03:00
parent da93819c6c
commit 7d2d16ae03
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -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)
+1 -1
View File
@@ -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 = ...