Type: /silence
to ban & nicklock the user within a channel you have access to bant hem in and keep a timer so you no longer need to worry
--note: if the user is on a sifferent access level then she channel has him set as ((lets say he is access 3, but currently is set as an op)) it will unban him after the timer and add him to the access list at said level.
This is not my script and Most of the work has been done by various members of the network i go on.
alias silence {
describe # smites $$1, with holy wrath, therefore resulting in a loss of speaking privileges for $$2 minute(s).
if ($left($nick($chan,$$1).pnick,1) == +) { mode $chan -v $$1 | cs ACCESS # DEL $$1 | set % [ $+ [ $address($$1,2) ] $+ shoot ] 4 }
if ($left($nick($chan,$$1).pnick,1) == %) { mode $chan -hv $$1 $$1 | cs ACCESS # DEL $$1 | set % [ $+ [ $address($$1,2) ] $+ shoot ] 3 }
if ($left($nick($chan,$$1).pnick,1) == @) { mode $chan -ohv $$1 $$1 $$1 | cs ACCESS # DEL $$1 | set % [ $+ [ $address($$1,2) ] $+ shoot ] 2 }
if ($left($nick($chan,$$1).pnick,1) == &) { mode $chan -aohv $$1 $$1 $$1 $$1 | cs ACCESS # DEL $$1 | set % [ $+ [ $address($$1,2) ] $+ shoot ] 1 }
mode # +bb ~q: $+ $address($$1,2) ~n: $+ $address($$1,2)
var %i = $calc($$2 * 60)
.timer 1 %i charge.timer $$1
}
alias charge.timer {
mode # -bb ~q: $+ $address($$1,2) ~n: $+ $address($$1,2)
if ($(% $+ $address($$1,2) $+ shoot,2) == 4) { mode # +v $$1 | cs ACCESS # ADD $$1 3 | unset %i [ $+ [ $address($$1,2) ] $+ shoot ] }
if ($(% $+ $address($$1,2) $+ shoot,2) == 3) { mode # +h $$1 | cs ACCESS # ADD $$1 4 | unset %i [ $+ [ $address($$1,2) ] $+ shoot ] }
if ($(% $+ $address($$1,2) $+ shoot,2) == 2) { mode # +o $$1 | cs ACCESS # ADD $$1 5 | unset %i [ $+ [ $address($$1,2) ] $+ shoot ] }
if ($(% $+ $address($$1,2) $+ shoot,2) == 1) { mode # +a $$1 | cs ACCESS # ADD $$1 10 | unset %i [ $+ [ $address($$1,2) ] $+ shoot ] }
ambiance # : $+ $$1 regains the power of speech. It would do you well to not bring on the wrath of $me once more...
}