$event
From Scriptwiki
Returns the name of the event that was triggered.
$event
- This function has no parameters.
Example
on *:TEXT:*:#:echo -sg $nick said $1- in a $event event.
Echoes what the user said "in a text event." to the status window.