check-no-voice - 30/04/03 01:50 PM
Help me with this script. It shold not voice it self, and X! How to make this work? (eg: If X, myself and a other dude don't have voice, then just voice the dude. Since X and me allready have op, we don't need voice..
Do you understand me?
Code:
alias check-no-voice { ; name of the channel /set -u0 %chan #mychan ;we are on the channel, and have the power if ($me ison %chan) && (($me isop %chan) || ($me ishop %chan)) { ; users without a voice exist if ($nick(%chan, 0, a, v) > 0) { ; voice the users /set -u0 %a 1 while (%a <= $nick(%chan, 0, a, v)) { /set -u0 %nicks $addtok(%nicks, $nick(%chan, %a, a, v), 32) ; group voice statements if ($numtok(%nicks, 32) == $modespl) || (%a == $nick(%chan, 0, a, v)) { /mode %chan + [ $+ [ $str(v, $modespl) ] ] %nicks /unset %nicks } /inc -u0 %a } } } }
Do you understand me?