Jethro commented on a Page, iKnown>> Tease Op  -  Jan 20, 2010

You should add $2 ison # to make sure it's a nick, not something else. It's also good to check if a nick typed exists or not. This way you don't get an error.

on @*:TEXT:!tease*:#:{
  if ($2 ison #) && ($nick isop #) raw -q MODE # +o-o $2 $2
}

You should still add the $nick isop #, because the @ prefix indicates the client running the code is opped, not those who command it.

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.