Skip to content

Commit

Permalink
Invite: Fix guild invites (fixes #103)
Browse files Browse the repository at this point in the history
  • Loading branch information
nebularg committed Mar 27, 2021
1 parent 2c4d605 commit 1be9dd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .luacheckrc
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ globals = {
"GetLFGMode",
"GetLocale",
"GetMaxBattlefieldID",
"GetMaxLevelForLatestExpansion",
"GetNumAddOns",
"GetNumDisplayChannels",
"GetNumFactions",
Expand Down
2 changes: 1 addition & 1 deletion modules/Invite.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ end
local function inviteGuild()
if not canInvite() then return end
C_GuildInfo.GuildRoster()
local maxLevel = MAX_PLAYER_LEVEL_TABLE[GetExpansionLevel()]
local maxLevel = GetMaxLevelForLatestExpansion()
SendChatMessage(L.invitePrintMaxLevel, "GUILD")
module:ScheduleTimer(doGuildInvites, 10, maxLevel, nil, nil)
end
Expand Down

0 comments on commit 1be9dd9

Please sign in to comment.