Skip to content

Bug fixes + restructure#31

Merged
superstyro merged 7 commits into
masterfrom
BugFixes
Nov 28, 2025
Merged

Bug fixes + restructure#31
superstyro merged 7 commits into
masterfrom
BugFixes

Conversation

@superstyro
Copy link
Copy Markdown
Owner

Corrected a few additional bugs found during testing and refactored folder structure for better addon layout

superstyro and others added 7 commits November 27, 2025 16:29
1. Fixed table iteration bug in favorites removal (lines 1469-1515):
   - Using table.remove() inside pairs() loop caused iteration skipping
   - Changed to iterate backwards from #table to 1, which is safe for removal
   - Affects all 8 favorite categories (items, itemsets, spells, skills,
     quests, creatures, objects, teles)

2. Fixed incorrect string.gmatch usage in teleport filtering (line 840):
   - string.gmatch() returns iterator, not boolean - condition was always true
   - Changed to string.find() which correctly returns nil when not found
   - Fixes broken teleport message hiding logic

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
Fixed critical bugs in MangFrames_SectionServer.lua (lines 369-383):

1. Added nil check for delayParam before comparison:
   - tonumber() returns nil for non-numeric input
   - Prevents "attempt to compare number with nil" error

2. Added nil check for diff value before using in graph:
   - Prevents crash when ma_difftext contains non-numeric text
   - Wraps comparison and AddBar calls in nil check

These bugs caused error spam in the OnUpdate loop which could freeze the UI.
Both issues are now prevented with proper nil validation.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Created new directory structure (Core, Data, Modules folders)
- Moved data files (DBC.lua, Models.lua, TeleportTable.lua) to Data/
- Moved core files to Core/ (AzerothAdmin.lua, Init.lua)
- Moved MangLinkifier.lua to Modules/Linkifier.lua
- Moved MangFrames.lua to Frames/
- Renamed all Commands files to remove "Commands_" prefix
- Updated AzerothAdmin.toc with new file paths
- Removed reference to non-existent Commands_Log.lua from .toc

This improves code organization and maintainability by grouping
related files into logical directories following WoW addon best practices.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
@superstyro superstyro merged commit a8a6bb6 into master Nov 28, 2025
@superstyro superstyro deleted the BugFixes branch November 28, 2025 01:02
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