Replaced if statements with switch and enum.
Renamed IRC*Handler functions to *Handler.