Permanent Ban

By DaDealer on Oct 25, 2008

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            
        }
      }
    }
  }
}

Comments

Sign in to comment.
DaDealer   -  Nov 09, 2008

Thank you, all the ones that see it does work lol. Like I said in the description "I'm not the best at scripting, but it works and I'm sure there was a better way to do it." But if it works who cares.

 Respond  
Gothis   -  Nov 07, 2008

Not bad, not bad at all. Well done.

 Respond  
Abtehi   -  Nov 07, 2008

Nothing wrong with this script, if no one likes it, just no comment and back off.!!

I 2nd that, Napa182. :)

DaDealer: Great Work. :)

 Respond  
napa182   -  Nov 01, 2008

DaDealer dont pay any attention to Bullet_Dodger he is an utter moron.

 Respond  
DaDealer   -  Nov 01, 2008

ok I made it so it wont kick the person who gives the commands, My bad on that one.

 Respond  
Blitzjager   -  Oct 28, 2008

It's still going to kick the person who says !pban.
Also what's the point of
kick $chan $nick $3-? I don't think that would even work
If you made

on *:text:*!pban*:#: {
  if ($2- ison $chan) {
INTO
on *:text:!pban*:#: {
  if ($2 ison $chan) {

It would

5/10

 Respond  
DaDealer   -  Oct 28, 2008

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.

 Respond  
Blitzjager   -  Oct 28, 2008

akick doesn't work on my server and neither did this script. =/

Nevermind. I wasn't op'd :P
BUT. You're using $nick instead of $2 for the kick/reason.
You have 2 if ($nick isop)'s and it doesn't kick clones.

But it does work.

 Respond  
Bullet_Dodger   -  Oct 28, 2008

Thats not the point, The point is a 'akick' is a perm ban aslong as no-one removes it, and if you chose your admins wisely theres no need for this script 2/10

 Respond  
DaDealer   -  Oct 27, 2008

Man you guys could at least vote it good for me =) It does work after all, maybe messy code but it still works.

 Respond  
Bullet_Dodger   -  Oct 26, 2008

DaDealer Try /cs akick #channel nick/hostmask reason
works just as well

 Respond  
DaDealer   -  Oct 26, 2008

That dont seem to work on irc.mibbit.com, I have tried it in other things. Thats why I just started adding a seperate kick line.

 Respond  
napa182   -  Oct 26, 2008

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

 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.