Extract name and channel IRC commands to handlers