azerothcore / mod-ah-bot

AHBot for AzerothCore
http://azerothcore.org/
70 stars 82 forks source link

Refactor AHBot command passing #85

Closed dedmen closed 5 months ago

dedmen commented 5 months ago

Refactor the way commands are passed. Instead of passing a magic number and writing a comment of what it means, pass an enum. Instead of copy-pasting the quality level parsing code, make it a lambda function.

This could still be done much cleaner, but its a first step.

It should be refactored to use command tables, some other time.