Skip to content

fix: Add missing OnLogout hook#137

Merged
Nyeriah merged 1 commit into
azerothcore:masterfrom
Nyeriah:wg2
Mar 11, 2026
Merged

fix: Add missing OnLogout hook#137
Nyeriah merged 1 commit into
azerothcore:masterfrom
Nyeriah:wg2

Conversation

@Nyeriah
Copy link
Copy Markdown
Member

@Nyeriah Nyeriah commented Mar 10, 2026

CFBG_Player was missing PLAYERHOOK_ON_LOGOUT in its constructor, making OnPlayerLogout dead code. Added the hook so fake races are correctly cleared on logout.

In OnBattlefieldPlayerJoinWar: removed a stale debug LOG_ERROR and updated the handler comment to reflect the core fix — the invite is now erased using GetTeamId(true) so no stale timer remains after the cross-faction team assignment.

CFBG_Player was missing PLAYERHOOK_ON_LOGOUT in its constructor,
making OnPlayerLogout dead code. Added the hook so fake races are
correctly cleared on logout.

In OnBattlefieldPlayerJoinWar: removed a stale debug LOG_ERROR and
updated the handler comment to reflect the core fix — the invite is
now erased using GetTeamId(true) so no stale timer remains after the
cross-faction team assignment.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@Nyeriah Nyeriah changed the title fix: Add missing OnLogout hook; clean up WG join handler fix: Add missing OnLogout hook Mar 11, 2026
@Nyeriah Nyeriah merged commit d90157c into azerothcore:master Mar 11, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant