The bot will have to have ops, as only ops can use the onotice or omsg commands, but it looks like you're right about hixxy using $1 where it should be $2 in the $addtok.