Anti-Notice Ban Script/Snippet

By LudLud on Oct 12, 2006

Tired of random people who notice in your channel ? Here's a solution !



This is my first script, i looked at some scripts and incorporated, modified, and added new code to create the script.
This is an anti notice script. Whenever someone notices in a specific channel that you have specified, that user will get banned for 1 hour.



Features:

  • Specify channels you wish the script to work in
    • this is done by right clicking on a channel, and you will see the pop up menu (on/off)
  • Protect voiced/opped users from being banned by the script( on/off)
    • you can select if you want it to protect opped only or voiced only ( or both )



      The ban is set through the services ( chanserv ).


      P.S. The script is written for the gamesurge network (irc.gamesurge.net) therefore if the commands/names of services differ, please change it in the script.

; Anti-Notice v1.0
; by kLeos aka LudLud
; contact: ludlud.bg@gmail.com
; irc.gamesurge.net #atl #redcell
; This is a script that will ban users who notice in a specific channel.
; You can also set which channels you want this script to work in, and protect voiced/opped users. 
; Variables are channel related, if you enable/disable something it is enabled/disabled for that channel only!
; That is more useful i think :P
; Enjoy :)

menu channel {
  Notice Utilities
  .Protection
  ..$iif($($+(%,protect.v.,$chan),2),$style(1)) Protect +v users:if ($($+(%,protect.v.,$chan),2)) { set $+(%,protect.v.,$chan) 0 } | else { set $+(%,protect.v.,$chan) 1 }
  ..$iif($($+(%,protect.o.,$chan),2),$style(1)) Protect +o users:if ($($+(%,protect.o.,$chan),2)) { set $+(%,protect.o.,$chan) 0 } | else { set $+(%,protect.o.,$chan) 1 }
  .$iif($($+(%,notice.ban.,$chan),2),$style(1)) Ban notice users:if ($($+(%,notice.ban.,$chan),2)) { set $+(%,notice.ban.,$chan) 0 } | else { set $+(%,notice.ban.,$chan) 1 }
}

on 1:NOTICE:*:#:{
  if ($($+(%,protect.o.,$chan),2)) && ($nick isop $chan) { halt }
  if ($($+(%,protect.v.,$chan),2)) && ($nick isvoice $chan) { halt }
  if ($($+(%,notice.ban.,$chan),2)) {
    msg ChanServ ADDTIMEDBAN $chan $nick 1h Noticing is NOT allowed in this channel. 1 hour ban $time
  }
}

Comments

Sign in to comment.
elpito   -  Oct 02, 2009

not works...

 Respond  
Cheiron   -  Feb 02, 2008

nice script and well written.. also remember that mIRC has a mode for this also depending on what server you are on... the unreal server has mode T which means no NOTICES in channel. so to stop any notices sent in channel you would type /mode #channel +T obviously need owner (q) or admin (&) mode to set it though

 Respond  
Levy   -  Jan 20, 2008

Great script. Thanks!

 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.