Commit 0c0afa3b authored by Azilroka's avatar Azilroka

LibElvUIPlugin: Add Guild to Version Check

parent c0506ca3
local MAJOR, MINOR = "LibElvUIPlugin-1.0", 20
local MAJOR, MINOR = "LibElvUIPlugin-1.0", 21
local lib, oldminor = LibStub:NewLibrary(MAJOR, MINOR)
if not lib then return end
......@@ -214,7 +214,7 @@ end
function lib:SendPluginVersionCheck(message)
if (not message) or strmatch(message, "^%s-$") then return end
local ChatType = ((not IsInRaid(LE_PARTY_CATEGORY_HOME) and IsInRaid(LE_PARTY_CATEGORY_INSTANCE)) or (not IsInGroup(LE_PARTY_CATEGORY_HOME) and IsInGroup(LE_PARTY_CATEGORY_INSTANCE))) and "INSTANCE_CHAT" or (IsInRaid() and "RAID") or (IsInGroup() and "PARTY") or nil
local ChatType = ((not IsInRaid(LE_PARTY_CATEGORY_HOME) and IsInRaid(LE_PARTY_CATEGORY_INSTANCE)) or (not IsInGroup(LE_PARTY_CATEGORY_HOME) and IsInGroup(LE_PARTY_CATEGORY_INSTANCE))) and "INSTANCE_CHAT" or (IsInRaid() and "RAID") or (IsInGroup() and "PARTY") or (IsInGuild() and 'GUILD') or nil
if not ChatType then return end
local delay, maxChar, msgLength = 0, 250, strlen(message)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment