alias -l ident { return $remove($gettok($gettok($address($1,5),2,33),1,64),~) } On @*:Join:#: { if ($ident($nick) == $nick) { do stuff } }