This is for the ban happy people who just love to ban excessivly.... Like me. :D Simple, paste it under the "nick list" section of Popups and right click there nick on the nick list and you should see a "total ban" section go to it and click "add bans" and BAM them be banned/muted ... It's basically an oversized mute and if they leave they are banned to hell. >:| Quite pointless, but fun none the less.
There is an updated version of the ban underneath the original script (For those who would get off my ass, I didn't change it 'cause it's a ridiculous script and it's not worth my time fixing a noob script, now leave me alone.)
Total Ban
.Add Bans:{
/mode $chan +b ~n: $+ $address($$1,2)
/mode $chan +b ~q: $+ $address($$1,2)
/mode $chan +b $address($$1,1)
/mode $chan +b $address($$1,2)
/mode $chan +b $address($$1,3)
/mode $chan +b $address($$1,4)
/mode $chan +b $address($$1,5)
/mode $chan +b $address($$1,6)
/mode $chan +b $address($$1,7)
/mode $chan +b $address($$1,8)
/mode $chan +b $address($$1,9)
/mode $chan +b $address($$1,10)
/mode $chan +b $$1
/mode $chan -q $$1
/mode $chan -a $$1
/mode $chan -o $$1
/mode $chan -h $$1
/mode $chan -v $$1
}
.Remove Bans:{
/mode $chan -b ~n: $+ $address($$1,2)
/mode $chan -b ~q: $+ $address($$1,2)
/mode $chan +b $address($$1,1)
/mode $chan -b $address($$1,2)
/mode $chan -b $address($$1,3)
/mode $chan -b $address($$1,4)
/mode $chan -b $address($$1,5)
/mode $chan -b $address($$1,6)
/mode $chan -b $address($$1,7)
/mode $chan -b $address($$1,8)
/mode $chan -b $address($$1,9)
/mode $chan -b $address($$1,10)
/mode $chan -b $$1
/mode $chan +v $$1
}
}
;;;;;;;;;;;;;;;;;;;;;
;;;;;;;Updated;;;;;;;
;;;;;;;;;;;;;;;;;;;;;
menu channel,nicklist {
Total Ban
.Add bans { var %x 1 | while (%x <= 20) { mode $active +b $address($$1,%x) | inc %x } }
.remove bans { var %x 1 | while (%x <= 20) { mode $active -b $address($$1,%x) | inc %x } }
}
;There, it's not anything pro, I just can't be assed to make it look any better or spend anymore time on it. Leave me alone!
alias banb {
var %b = $1,%c = $2,%p = $$3,%i = 1
while (%i < 11) {
mode %c %b $address(%p,%i)
inc %i
}
mode $chan %b ~n: $+ $address(%p,2)
mode $chan %b ~q: $+ $address(%p,2)
mode $chan %b $+ -qaohv %p %p %p %p %p %p
mode $chan $iif(+* iswm %b,-v,+v) %p
}
Total Ban
.Add Bans:banb +b $active $$1
.Remove Bans:banb -b $active $$1
}
^^How i\'d do it^^
the code could be alot better, here is a small example
usage /ovrkillban #channel
alias ovrkillban {
if (!$ial($2)) { echo -a * /ovrkillban: IAL error | return }
var %i = 1,%addresses
while (%i <= 10) {
%addr = %addr $address($2,%i)
if ($numtok(%addr,32) == $modespl) {
mode $1 + $+ $str(b,$numtok(%addr,32)) %addr
%addr = \"\"
}
inc %i
}
if (%addr) mode $1 + $+ $str(b,$numtok(%addr,32)) %addr
}
/mode $chan +b $address($$1,1)
/mode $chan +b $address($$1,2)
/mode $chan +b $address($$1,3)
/mode $chan +b $address($$1,4)
/mode $chan +b $address($$1,5)
/mode $chan +b $address($$1,6)
/mode $chan +b $address($$1,7)
/mode $chan +b $address($$1,8)
/mode $chan +b $address($$1,9)
/mode $chan +b $address($$1,10)
could use a simple while loop
var %x = 1
while %x <= 10 {
mode $chan +b $address($$1,%x)
inc %x
}
/mode $chan +b $$1
/mode $chan -q $$1
/mode $chan -a $$1
/mode $chan -o $$1
/mode $chan -h $$1
/mode $chan -v $$1
u can simply do
mode $chan -qaohv $str($$1 $+ $chr(32),5)
(for ever mode, u need a nick)
ok.. here we go. fairly good script. well written, but a few issues i have found for your attention to note. there are better ways to write the ban, but i will not go into the actual coding side this time.
firstly, chanserv only allocates a certain amount of bans per channel. this will add that number of bans to the chanserv list.
secondly, some of those ban masks will cancel the other out. there are 20 ways a user can be banned according to their nick, hostamsk and isp. but they are duplicated. so instead of setting 20 bans fro example, you would end up with something like 8.
thirdly... make sure what level bans you are using. one of the ban masks hits the isp DIRECTLY. this means that ANY user on that isp will not be able to join room, regardless of if they are the banned user or innocent.
fourthly. there are a good few scripts on this site that look very very close code wise.
http://www.hawkee.com/snippet/2524/ for example.. Ultimate Ban + Kick by pyro.
and this one..
http://www.hawkee.com/snippet/2644/ for example.. Alias-Ban by xutim-