Ok this is a Permanent Ban Snippet for a OPed Bot. Any # OP can type: !bpan
And this will add the persons hostmask to the banned list, even if your # banned list is cleared when this person joins the # it will kick/ban him again.
I'm not the best at scripting..but it works and I'm sure there was a better way to do it.
Oh and incase your new to this stuff...Paste it in the Remote Section. (ALT + R)
Thank you,
DaDealer
;****************************************;
;******* Made By: DaDealer ******;
;******* Some Credit would be nice ******;
;******* If you use it. ******;
;******* Permanent Ban!!! ******;
;****************************************;
;----place this part in its own remote script-----
on *:JOIN:#: {
set %t $address($nick,2)
if (%banned. [ $+ [ %t ] ] > 0) {
ban -k $chan %t
kick $chan $nick you are on the Pban List and are not welcome here!!
msg $chan $nick is on the Pban List and is not welcome here!!
unset [-s] %t
}
}
;-----place this part in a seperate remote script------
on *:text:*!pban*:#: {
if ($2 ison $chan) {
if ($2 isop $chan) {
if ($nick == $2) {
halt
}
else {
set %v $address($2,2)
inc %banned. [ $+ [ %v ] ]
if ($nick isop $chan) {
ban -k $chan %v
kick $2 $2 you are on the Pban List and are not welcome here!!
notice $2 you have pissed 4 $me off
notice $2 4,0.....................7,0/´¯/)4,0.....................
notice $2 7,0...................7,0,/?../7,0...................
notice $2 8,0..................7,0/..../8,0..................
notice $2 9,0.............7,0/??/'...'/??'??9,0.............
notice $2 11,0..........7,0/'/../...../..... /??\11,0..........
notice $2 12,0........7,0('(...?...?... ?~/'...')12,0........
notice $2 13,0.........7,0\.................'.../13,0.........
notice $2 15,0..........7,0'\'...\......... _.??15,0..........
notice $2 14,0............7,0\.............(14,0............
notice $2 1,0..............7,0\............ \1,0..............
msg $chan $2 is now on the Pban List and is not welcome here!!
unset [-s] %v
}
}
}
}
}
I dont choose the admin's the owner does, I just control the bot. And with about 30+ bans a day, you would lose track of what bans can be cleared and what ones cant. we get about 5000 joins per # everyday....its nice to have a way to make sure the real bad ones dont come back.
And no it dont kick clones, my clone kicker does that =) But once the host is banned the clones cant talk in the # anymore anyway.
you could clean it up abit
on *:JOIN:#: {
if ($($+(%,banned,.,$address($nick,2)),2) > 0) {
ban -k $chan $nick 2 you are on the Pban List and are not welcome here!!
msg $chan $nick is on the Pban List and is not welcome here!!
}
}
on *:text:!pban*:#: {
if ($2 ison # && $nick isop # && $nick != $2) {
inc $+(%,banned,.,$address($2,2))
ban -k $chan $2 2 you are on the Pban List and are not welcome here!!
msg $chan $nick is now on the Pban List and is not welcome here!!
}
}
you dont need to use the kick line if you are useing the -k switch in the ban