v4.1.1
What's new
Changelog
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
[4.1.1] - 2026-11-06
Added
- Universal 4-Tier Multi-Client Hook Architecture:
- Tier 1 (
EventRegistry): Feature-detectsChatFrameEditBoxMixin.OnPreSendText(in addition totocVersion >= 120000and WoW Forever16001, #40) to registerChatFrame.OnEditBoxPreSendText. - Tier 2 (
ChatFrameEditBoxMixin.SendText): Hooks bothChatFrameEditBoxMixin.SendTextand all already-createdChatFrame1EditBox–ChatFrameNframes so XMLMixin()copies made prior to addon load are updated. - Tier 3 (
ChatEdit_SendText): Hooks globalChatEdit_SendTextfor Classic Era 1.15.8 (#35) and TBC Anniversary 2.5.5 (#36) clients whereChatFrameEditBoxMixindoes not exist. - Tier 4 (
ChatCompat:HookSendChatMessage): DirectC_ChatInfo.SendChatMessage/SendChatMessagehook as final safety fallback.
- Tier 1 (
- Guild & Communities Window (
J) Support (#38):- Hooks
CommunitiesFrame.Chat:SendMessageandCommunitiesFrame.ChatEditBox(on load and viaADDON_LOADEDforBlizzard_Communities) and handlesCOMMUNITIES_CHANNELinModifyChatMessage()so messages typed in the Guild/Communities panel (J) or linked Community chat tabs properly receive your name prefix.
- Hooks
- Mythic+ Keystone & Active Boss Encounter Protection (#37, PR #39):
- Added checks for
C_ChallengeMode.IsChallengeModeActive(),C_InstanceEncounter.IsEncounterInProgress(),IsEncounterInProgress(), andC_ChatInfo.InChatMessagingLockdown()so chat messages are never tainted or blocked during Mythic+ runs or while dead during an active boss encounter.
- Added checks for
- World of Warcraft: Forever Support & Features (#40):
- Added Interface
16001(## Interface-Forever: 16001) and latest Retail/Classic interface versions (120100,120007,120005,50504,20506) toName2Chat.toc, CI workflows, and release notes. - Added feature detection for
ChatFrameEditBoxMixin:OnPreSendText()andIsSecretValueguards onUnitName("player"). - Added "Add name in combat" (
combat) option: allows adding the name in combat whenC_ChatInfo.InChatMessagingLockdown()explicitly reportsfalse(outside Boss Encounters and Mythic+). - Added "Show guild note for players without the addon" (
guildNote) option: local display filter for incoming guild/officer messages that prepends the sender's public guild note when they don't use Name2Chat. - Reorganized the Options panel into clean sections (General, Chat channels, Behaviour, Received messages, Advanced) with full-width toggles while preserving 100% compatibility with existing
Name2ChatDBsettings.
- Added Interface
- Multi-Channel Custom Channel Support: The
channeloption now supports comma- or semicolon-separated channel names (e.g.Channel1, Channel2), Community stream names, and channel numbers with automatic whitespace trimming. - Full Multi-Version TOC Metadata: Added explicit per-flavor TOC directives (
Interface-Retail,Interface-Mists,Interface-Cata,Interface-Wrath,Interface-BCC,Interface-Classic) and localizedNotes-*entries for all 11 supported languages. - Complete Localization Coverage: Added missing locale strings (
debug_combat_lockdown,debug_mythic_plus,debug_slash_command,debug_already_prefixed,debug_msg_too_long,hook_active_chatedit,hook_active_communities) across all 11 locale files (enUS,deDE,esES,esMX,frFR,itIT,koKR,ptBR,ruRU,zhCN,zhTW).
Changed
- Clean Login Output: Changed hook activation status messages (
hook_active_eventregistry,hook_active_mixin,hook_active_chatedit,hook_active_communities) fromPrinttoSafe_Printso chat is no longer spammed on every login or/reloadwhen Debug mode is disabled. - Modernized
ChatCompat(v4): IntegratedChatCompatdirectly intoName2Chat.luawithIsSecretValue(),IsEncounterActive(),IsMythicPlusActive(),GetChatMessagingLockdownState(),IsChatMessagingLockedDown(), andIsChatRestricted()helpers. - Updated GitHub Actions & BigWigs Packager Config:
- Updated
actions/checkout(v4→v7),actions/upload-artifact(v4→v7),actions/download-artifact(v4→v8), andsoftprops/action-gh-release(v2→v3). - Updated
BigWigsMods/packager@v2(v2.7.0) integration to use non-deprecatedCF_API_TOKEN/GH_API_TOKENenvironment variables (with automatic fallback toCF_API_KEY), addedinclude-hidden-files: truefor.release/*.zipartifact upload, and configuredenable-toc-creation: yesandmarkup-type: markdownforCHANGELOG.mdin.pkgmeta. - Added project-specific GitHub Issue Forms (
bug_report.yml,feature_request.yml,config.yml) and Pull Request template (PULL_REQUEST_TEMPLATE.md).
- Updated
- Case-Insensitive Character Name Matching:
hideOnMatchingCharNamenow compares character names case-insensitively and initializescharacter_nameimmediately on load/reload viaGetCharacterName(). - Leader Chat Type Support: Added
PARTY_LEADER,RAID_LEADER, andINSTANCE_CHAT_LEADERhandling alongsidePARTY,RAID, andINSTANCE_CHAT.
Fixed
- Classic Era 1.15.8 & TBC Anniversary 2.5.5 "No hook entry point found" (#35, #36): Fixed silent failure on Classic 1.15.8 and TBC Anniversary where
ChatFrameEditBoxMixinwas absent and no fallback toChatEdit_SendText/SendChatMessageexisted. - Chat Blocked in Mythic+ & During Boss Encounters (#37, PR #39): Fixed
ADDON_ACTION_FORBIDDENtaint in Mythic+ keystone dungeons and when dead while a boss encounter is still in progress. - Guild & Communities Panel (
J) Not Adding Name (#38): Fixed messages typed in the Guild & Communities window (J) bypassing the main chat edit box hook. - Slash Commands & Whispers Leaking to Chat on Classic (Critical): Fixed a critical bug in non-
EventRegistryhooks where typing any slash command (/reload,/n2c,/afk,/w, etc.) while an active channel like Guild chat was sticky causedName2Chatto prepend(Name):beforeParseText(1)ran, turning slash commands and whispers into public Guild/Party/Raid messages. - Double-Prefixing from Chat History: Fixed an issue where recalling a previously sent message via
Alt+Upin the chat edit box prepended(Name):a second time. - 255-Byte Chat Limit & Hyperlink Truncation: Added a 255-byte length guard (
MAX_CHAT_BYTES) so long messages or trailing item/keystone hyperlinks (|H...|h) are never truncated or rejected bySendChatMessage. - Missing
ChatCompat.luain Release Fallback Packaging: AddedChatCompat.luato manual and emergency packaging steps in.github/workflows/release.ymland toluacheckin.luacheckrc,quality.yml, andtest.yml. - Legacy Addon Name in
enUS.lua: Fixed leftover reference to"Incognito"inhideOnMatchingCharName_desc.
Security
- Slash Command & Whisper Leak Prevention: Explicitly blocks prefixing any message starting with
/(StartsWithSlash) and resolves/w//schannel switches prior to inspection. - Patch 12.0.0 Secret Values Protection: Added
issecretvalueguards (ChatCompat:IsSecretValue) foreditBox:GetText(),chatType, andchannelTargetto prevent taint/secret value errors in Retail 12.0+. - GitHub Actions Hardening: Added least-privilege
permissions: contents: readtoquality.ymlandtest.yml, and moved workflow dispatch inputs inrelease.ymltoenv:variables to prevent shell script injection.
Removed
- Unused External Libraries in
.pkgmeta: RemovedAceSerializer-3.0,AceTab-3.0,AceTimer-3.0, andAceComm-3.0from.pkgmetato matchembeds.xmland reduce release archive size.
Version 4.0.4 (25.02.2026)
Bug Fixes
- Classic HC realms / Classic Era 1.15.x broken after 4.0.3: Classic clients (e.g. 1.15.8) have
EventRegistrybackported but do not fire theChatFrame.OnEditBoxPreSendTextevent — that event is exclusive to Retail Patch 12.0.0 (Midnight/TWW). Because the oldif EventRegistry thencheck was satisfied, theChatFrameEditBoxMixin.SendTextfallback was never reached and the hook was completely silent. Fixed by gating theEventRegistrypath onGetBuildInfo()interface version ≥ 120000. Classic clients now correctly use theChatFrameEditBoxMixin.SendTexthook.
Version 4.0.3 (24.02.2026)
Bug Fixes
- Chat blocked during combat (ADDON_ACTION_FORBIDDEN): When the player was in combat lockdown (raid, M+, PvP zones), calling
editBox:SetText()inside theChatFrame.OnEditBoxPreSendTextcallback tainted the protectedSendChatMessage()call that followed — causing the Blizzard combat popup to appear and the message to be fully blocked (issue #33)- Fix: Added an
InCombatLockdown()check at the start ofModifyChatMessage(). During combat the function returns immediately without touching the EditBox, so the message is sent as-is (without name prefix) without any error - Trade-off: The name prefix cannot be added during combat — this is an unavoidable Blizzard engine restriction that affects all chat-modifying addons (e.g., Prat) since Midnight/TWW
- Fix: Added an
- Raid chat inside instances not working: In WoW instances (raids, LFR, battlegrounds),
/raidchat is routed by the game asINSTANCE_CHATinstead ofRAID. Enabling "Raid" in the addon settings now also coversINSTANCE_CHATautomatically. - Officer chat (
/o) not covered: Added explicit handling forOFFICERchat type under the guild setting (which already documented/g and /oin its description). - Name not being prepended to messages (critical fix): Found and resolved root cause
- Previous approaches (
ChatEdit_SendText,ChatFrameEditBoxMixin.SendText) were bypassed because Blizzard completely rearchitected the chat send path in Patch 12.0.0 - The correct hook point is now
EventRegistry:RegisterCallback("ChatFrame.OnEditBoxPreSendText", ...) - Blizzard included this event explicitly for addons: "Notification for user addons to perform any final edits to chat text contents before sending." (source:
ChatFrameEditBox.luainBlizzard_ChatFrameBase) - The event fires after
ParseText()(chatType already resolved, e.g./g→"GUILD") but beforeGetText()is called for the send — soSetText()still affects the outgoing message - Hook confirmation
Name2Chat: Hook active (ChatFrame.OnEditBoxPreSendText)is always printed on load
- Previous approaches (
Patch 12.0.0 (Midnight) Compatibility
- Updated for WoW Patch 12.0.0 API changes:
ChatEdit_SendTextis now a deprecated alias only loaded whenloadDeprecationFallbacksCVar is set — no longer reliable as a hook target- Added support for new
ADDON_RESTRICTION_STATE_CHANGEDevent - Added monitoring for
addonChatRestrictionsForcedCVar - Enhanced error handling to work with the new "Secret Values" system
- Added
pcallprotection around chat modification code
Improvements
- Enhanced Error Handling: Added debug output at every decision point in
ModifyChatMessage()— disabled/empty name/unsupported chat type are all now logged when debug mode is active - Better User Feedback: Warns if addon chat restrictions are enforced
- Cross-Version Support: Works on all WoW versions (Retail 12.0+, Classic variants) via EventRegistry primary hook and
ChatFrameEditBoxMixin.SendTextfallback
Localization
- All hardcoded strings moved to AceLocale-3.0: Every visible string (UI labels, debug messages, status output) is now fully localized
- Translations added for all supported languages: deDE, esES, esMX, frFR, itIT, koKR, ptBR, ruRU, zhCN, zhTW
- Note: All translations except
enUSare AI-generated and may contain inaccuracies. Community corrections are welcome via CurseForge or the GitHub repository.
Technical Changes
HookChatSendFunction(): Switched primary hook toEventRegistrycallback;ChatFrameEditBoxMixin.SendTextkept as fallback for Classic/older clientsModifyChatMessage(): AddedSafe_Printdebug output at every early-return and decision pointOnAddonRestrictionChanged(): New event handler for Patch 12.0.0 chat restrictions- Removed unused libraries from
embeds.xml:AceComm-3.0,AceSerializer-3.0,AceTab-3.0,AceTimer-3.0
Version 4.0.2 (27.01.2026)
New Features
- ChatCompat Abstraction Layer: New mini-library for unified Chat API management
- Automatic feature detection for Retail/Classic APIs
- Centralized handling of all version differences
- Reusable for other addons via LibStub
Bug Fixes
- SendChatMessage Hook Recursion: Prevented re-entrance that caused "script ran too long" errors when sending chat messages
- Calls the stored original API instead of the hooked wrapper
- Fixes execution stall on message send across all supported clients
- ChatCompat LibStub Registration: Fixed critical error "attempt to call method 'HookSendChatMessage' (a nil value)"
- Corrected LibStub registration mechanism in
ChatCompat.lua - Proper function copying to library table
- Addon now loads correctly on all WoW versions
- Corrected LibStub registration mechanism in
Improvements
- Code Refactoring: Use of ChatCompat for clean API abstraction
- Removal of redundant Retail/Classic checks
- Simplified hook mechanism
- Better maintainability and readability
- TOC Format Update: Consolidated to modern single-interface format (Patch 10.2.7+)
- Added
LoadSavedVariablesFirst - Added
AllowAddOnTableAccessfor C_AddOns compatibility
- Added
- Documentation: Thorough commenting for Copilot-friendly structure
Technical Changes
- New file:
ChatCompat.luafor API abstraction layer - Updated
Name2Chat.luato use ChatCompat - Updated
embeds.xmlto load ChatCompat - Simplified hook management via
ChatCompat:HookSendChatMessage()
Version 4.0.0 (26.01.2026)
Major Updates
- Patch 12.0.1 (Midnight) Support: Updated for WoW Patch 12.0.1 (Interface 120001)
- Full Classic Compatibility: Added comprehensive support for all WoW variants
- Classic Era (Interface 11508)
- Season of Discovery
- TBC Classic (Interface 20504)
- Wrath Classic (Interface 30403)
- Cata Classic (Interface 40400)
Improvements
- Enhanced Version Detection: Automatic detection of all WoW client types
- Improved API Handling:
- Smart detection between modern
C_ChatInfo.SendChatMessage(Retail) and legacySendChatMessage(Classic variants) - Robust error handling with pcall protection
- Automatic fallback mechanisms for API compatibility
- Smart detection between modern
- Better Logging:
- Detailed client type identification in debug messages
- Shows exact WoW version being used (e.g., "Classic Era", "TBC Classic", "Midnight 12.0.1+")
- Interface version displayed in all log messages
- Patch 12.0.0 Compatibility: Ready for Secret Values system introduced in Midnight expansion
Technical Changes
- Added version compatibility constants for all WoW variants (IS_RETAIL, IS_CLASSIC, IS_TBC, IS_WRATH, IS_CATA)
- Improved hook initialization with pcall error protection
- Enhanced version string generation for different client types
- Updated comments to reflect Patch 12.0.0/12.0.1 API changes
Version 3.4.1 (19.11.2022)
- Added AceDB-3.0
Version 3.4.0 (15.11.2022)
- Updated TOC for prepatch 2
Version 3.3.5 (14.11.2022)
- Re-added all libs to prevent errors
Version 3.3.4 (31.10.2022)
- Removed space after Name
All Relations
- All Relations
- Embedded Library
- Optional Dependency
- Required Dependency
- Tool
- Incompatible
- Include

