refactor(Core): Make use of standard config usage for guild member limit option. (#22259)

This commit is contained in:
Benjamin Jackson
2025-06-05 14:51:19 -04:00
committed by GitHub
parent 11a4dc5ece
commit 1733c94aec
3 changed files with 4 additions and 1 deletions

View File

@@ -1444,7 +1444,7 @@ void Guild::HandleInviteMember(WorldSession* session, std::string const& name)
if (pInvitee->GetSocial()->HasIgnore(player->GetGUID()))
return;
uint32 memberLimit = sConfigMgr->GetOption<uint32>("Guild.MemberLimit", 0);
uint32 memberLimit = sWorld->getIntConfig(CONFIG_GUILD_MEMBER_LIMIT);
if (memberLimit > 0 && player->GetGuild()->GetMemberCount() >= memberLimit)
{
ChatHandler(player->GetSession()).PSendSysMessage("Your guild has reached the maximum amount of members ({}). You cannot send another invite until the guild member count is lower.", memberLimit);