Try

on 1:OPEN:?: { msg $nick ...... }

I have an Secure PC event that uses the On Open event using the above as a trigger.