Improved checking for structure of CTCP commands