Mass modes

By Yoinx on Jan 01, 2005

This snippet performs massmodes. useage "/modechange +mode" ie '/modechange +o" will op all selected nicks in the chan thats are selected in the nicklist. This should be used for your popups.

alias modechange {
  var %x 1
  var %z 1
  set %nicks $snicks
  if ( $snick(#,0) >= %x) {
    while ( %x <= $snick(#,0) ) {
      while ( %z <= $modespl ) {
        if ( %nicksmode == $null ) {
          set %nicksmode $gettok(%nicks,1,44) 
          set %nicks $deltok(%nicks,1,44)
        }
        else {
          set %nicksmode $($+(%nicksmode,$chr(32),$gettok(%nicks,1,44)))
          set %nicks $deltok(%nicks,1,44)
        }
        inc %z 
      }
      var %z 1
      mode # $($+($1,$str($2,$modespl))) %nicksmode
      unset %nicksmode
      inc %x
    }
    unset %nicks
  }
}

Comments

Sign in to comment.
Yoinx   -  Jan 12, 2005

do you have more than one person selected in the nicklist? this is more of a snippet to use in your menu commands. not from the command line. xdaemon wrote a snippet for the command line.

 Respond  
Lucifer1   -  Jan 12, 2005

when i use it it only does it 2 1 person

 Respond  
DarthReven   -  Jan 01, 2005

nice code Yonix

 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.