Code:
on ^1:rawmode:#: {
echo $chan $nick sets mode $1-: 
haltdef
}


The "haltdef" is like a return statement, it causes the event to terminate immediately.