Applied conditional check for command

The command coming from putty is sent with \r\n, but MegaMUD only sends \r

Additionally, I used CodeMaid to clean up the file