Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor AHBot command passing #85

Merged
merged 2 commits into from
May 10, 2024

Conversation

dedmen
Copy link

@dedmen dedmen commented May 9, 2024

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.

src/cs_ah_bot.cpp Outdated Show resolved Hide resolved
Co-authored-by: Stefano Borzì <[email protected]>
@Helias Helias merged commit 12fc952 into azerothcore:master May 10, 2024
1 check passed
@dedmen dedmen deleted the RefactorCommandPassing branch May 10, 2024 18: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.

2 participants