DO NOT COMMIT THIS TO MASTER!

This commit refactors the code to use case statements and to better
emulate an InspIRCd server espically when connecting.