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

CommandHandlerHelper (Yum!) Added #1027

Merged
merged 1 commit into from
Sep 24, 2018

Conversation

Mag-nus
Copy link
Member

@Mag-nus Mag-nus commented Sep 23, 2018

There were a ton of commands that worked both on the console, and from a player session.

These commands had conditions like the following to determine if the output should be sent to the console or to the sesion:
if (session != null)
sendToSession()
else
SendToConsole()

CommandHandlerHelper cleans up this.

In addition, there were places in the code that were doing Console.WriteLine that should have been using the logger instead.

There were a ton of commands that worked both on the console, and from a player session.

These commands had conditions like the following to determine if the output should be sent to the console or to the sesion:
if (session != null)
 sendToSession()
else
 SendToConsole()

CommandHandlerHelper cleans up this.

In addition, there were places in the code that were doing Console.WriteLine that should have been using the logger instead.
@Mag-nus Mag-nus merged commit 3232074 into ACEmulator:master Sep 24, 2018
@Mag-nus Mag-nus deleted the DatabaseCommandFixes branch September 24, 2018 12:05
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.

None yet

1 participant