mass modes for channel popups

By syk1k on Sep 03, 2004

copy / paste in remotes [ alt + r ]
and thats it tested on a few servers uses the same method as the nicklist mass modes i posted a few weeks back! i now see what astro was saying as to using $1 i was using 2 useless %vars bascially o_O, updated code to use $1 now, not thats it any faster at all

alias cpm {
  if ($me !isop $chan) { echo -a you need +q to perform some of these modes +a +o to perform the rest of the modes | .return }
  var %all = $nick(#,0),%kick = 0
  :start
  if (%kick > %all) { .return }
  inc %kick | if ($nick(#,%kick) == $me) { goto start }
  mode # $1 $nick(#,%kick) | goto start
}
menu channel {
  [mass]
  .[mass+q]:$cpm(+q)
  .[mass-q]:$cpm(-q)
  .[mass+a]:$cpm(+a)
  .[mass-a]:$cpm(-a)
  .[mass+o]:$cpm(+o)
  .[mass-o]:$cpm(-o)
  .[mass+h]:$cpm(+h)
  .[mass-h]:$cpm(-h)
  .[mass+v]:$cpm(+v)
  .[mass-v]:$cpm(-v)
}

Comments

Sign in to comment.
[-Superboyz-]   -  Sep 03, 2004

nice friends u can get it{ <-- this make 1 set $, ( chan + inv%-r ) $nick +inv% $mode (+set+vvv halt) $+(%set,%mode+o or u can set +v)} thanks ur script cool :)

 Respond  
syk1k   -  Sep 03, 2004

all works the same man $1 or $+()

 Respond  
astro   -  Sep 03, 2004

Good effort man, $+(%set,%mode) i dont see point to tho, i would use $1 but good effort all the same :)

 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.