on *:TEXT:*Chandler*was*seen*:#: {
if ( Chandler isincs $1- ) { msg #mychan $strip($1-) }
}

/help /if
Using brackets speeds up processing. If an alias uses too few brackets then the statement might be ambiguous and the alias will take longer to parse, might be parsed incorrectly, or might not be parsed at all.

if (v1 operator v2) { commands }
isincs string v1 is in string v2 (case sensitive)


Code:
//if ( khaled isgod ) echo yes | else echo no