Author Topic: auto ban and unban script :D  (Read 167 times)

Hamo

  • Trial Moderator
  • Newbie
  • ***
  • Posts: 16
  • Reputation +0/-1
  • Me
  • Location: Egypt
    • View Profile
auto ban and unban script :D
« on: February 09, 2011, 08:56:44 pm »
heres an auto ban script for channel control bots
Code: [Select]
on *:text:!addban *:#: {
    if ( $me isop $chan ) {
      if ($nick isop $chan)) {
        set %ban. [ $+ [ $2 ] ] 1
        msg $chan 5 $2 have been added to the Autoban List
        mode # +b $address($2,2)
        kick # $2 You Have been Banned From This Channel
      }
      else {
        msg $chan You are not allowed to use this Command
     }
   }
 }

on *:text:!delban *:#: {
    if ( $me isop $chan ) {
      if ($nick isop $chan)) {
        unset %ban. [ $+ [ $2 ] ]
        msg $chan 5 $2 have been deleted from The Autoban list
        mode # -b $address($2,2)
      }
      else {
        msg $chan You are Not allowed to use this command
     }
   }
 }

on *:join:#: {
    if ( %ban. [ $+ [ $nick ] ] == 1 ) {
      mode # +b $address($nick,2)
      kick # $nick You Are Banned From This Channel
}
 

its beter that you delete
Code: [Select]
  if ($nick isop $chan)) and add your own owner system or your nick
thats all :)
« Last Edit: February 09, 2011, 09:02:14 pm by Hamo »

Share on Bluesky Share on Facebook


MoTheHobo

  • Trial Moderator
  • Newbie
  • ***
  • Posts: 19
  • Reputation +1/-0
  • Anime Watcher!
    • View Profile
Re: auto ban and unban script :D
« Reply #1 on: February 09, 2011, 08:59:20 pm »
Oh nice script, i will use this one :P.

Jane

  • Management
  • Full
  • *******
  • Posts: 130
  • Reputation +1/-0
  • mIRC Scripters
    • View Profile
Re: auto ban and unban script :D
« Reply #2 on: February 09, 2011, 09:49:38 pm »
I Just love this script, Well done !