Perhaps the person triggering the script is on a named userlevel? If so, then @1 won't work.
on @*:RAWMODE:#:{
if ($istok(-a -q,$1,32)) && ($2 == $me) {
id
}
}
Otherwise, just make sure there's no other on rawmode even above that one in the same file.