Nicklist mode(s)

By Lindrian on Jul 22, 2007

Simple script to give modes in a channel through a nicklist menu, featuring mass modes aswell.

Simply paste in remotes (alt+r) and rightclick a nickname in a channel.

Note: You must be OP.

Enjoy.

alias snickmass {
  var %a = $1, %d
  while (%a) {
    %d = %d $snick($2,%a)
    if ($numtok(%d,32) == $modespl) {
      mode $2 $+($3,$str($4,$numtok(%d,32))) %d
      var %d = ""
    }
    dec %a
  }
  if (%d) { mode $2 $+($3,$str($4,$numtok(%d,32))) %d }
}

menu nicklist {
  .$iif($me isop $active,&Usermodes,$style(2) &Usermodes) 
  ..&Give OP: snickmass $snick($active,0) $active + o
  ..&Give HalfOP: snickmass $snick($active,0) $active + h
  ..&Give Voice: snickmass $snick($active,0) $active + v
  ..-
  ..&Take OP: snickmass $snick($active,0) $active - o
  ..&Take HalfOP: snickmass $snick($active,0) $active - h
  ..&Take Voice: snickmass $snick($active,0) $active - v
}

Comments

Sign in to comment.
Lindrian   -  Aug 30, 2007

I belive mIRC only allows like 4 people, sine it uses /mode $chan +oooo $1 etc etc...

 Respond  
Ghost-lit Warder   -  Aug 09, 2007

Only the voice and Op.

 Respond  
Mushufasa   -  Jul 25, 2007

Nice, but doesn\'t mIRC\'s control> do all this anyway?

 Respond  
Lindrian   -  Jul 23, 2007

Any comments? Simple, but efficient.

 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.