hixxy commented on a Page, Simple Voice Halfop Op snippet  -  Jan 11, 2012

Here's my take (supports both nickmodes and channel modes):

on @*:input:#:{ 
  if ($regex($1,/^[+-][ $nickmode ]/x)) {
    if ($2 !ison $chan) { echo 4 User $qt($2) is not currently on the channel. }
    else { mode $chan $1- }
  }
  elseif ($regex($1,/^[+-][ $remove($chanmodes,$chr(44)) ]/x)) { mode $chan $1- }
}
 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.