Abcdefmonkey commented on a Page, Simple Voice Halfop Op snippet  -  Jan 05, 2012

So much code for something simple. This is what I use

on *:INPUT:*: {
  if ($regex($mid($1-,1,2),[+-][vhoaq])) {
  if ($2 !ison $chan) { echo 4 User is not currently in the channel. | halt } 
    haltdef
    mode $chan $mid($1-,1,1) $+ $remove($mid($1-,2,2),$chr(32)) $2-
    }
}

Granted, it is an on input, but it's shorter and does the same thing yours does. Kudos anyways. :) Good work.

 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.