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