/
end |
if NoGuildStatus == nil then |
SetAutoDeclineGuildInvites(1) |
SetAutoDeclineGuildInvites(true) |
NoGuildStatus = true |
end |
return |
end |
local enable = not not (IsInGuild() or GetAutoDeclineGuildInvites() == 1) |
local enable = GetAutoDeclineGuildInvites() and not IsInGuild() |
if enable == NoGuildStatus and event ~= "PLAYER_LOGIN" then |
return |
end |