added initial code for CTCP detection