refactor handling of numeric replies from the IRC server