Jump to content

Script Kicker


ameer

Recommended Posts

  • Replies 20
  • Created
  • Last Reply

Top Posters In This Topic

Again, very basic but feel free to edit it as you wish :)

#scriptkick on
On ^*:JOIN:*:{
  if ($nick == $me) halt
  else .CTCP $nick version
}
On *:CTCPREPLY:*version*: {
  if ($1- != $null) {
    echo $active 4[Warning] $nick is using a script...
    kick $active $nick No scripts allowed, $nick $+ !
    access add deny $address($nick,2) 24
  }
}
#scriptkick end
menu channel {
  Script kick
  ..$iif($group(#scriptkick) == on,$style(1),$style(0)) On: .enable #scriptkick | echo $color(KICK) $active Script kick enabled.
  ..$iif($group(#scriptkick) == off,$style(1),$style(0)) Off: .disable #scriptkick | echo $color(KICK) $active Script kick disabled.
}

 

I can't remember how to ban using access but I think 24 = 24 hours or maybe 0 (Zero) = infinite.

 

Hope this helps :)

Link to comment
Share on other sites

How odd, it worked or me whenI tested it on my end. Though I didn't use add deny I used ban -u120 to ban. Is anything happening?

Edited by Silo
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...