Wrote IRC.Server module and refactored main accordingly