this will kick evrybody who will advertise in a chan use
.chanset +nopart
#############################################
### advertisekick.tcl ###
### Version 1.1 ###
### By Magnetronkip ###
### http://magnetronkip.legix-designz.com ###
### quakenet #magnetronkip ###
### magnetronkip[at]legix-designz[dot]com ###
#############################################
setudef flag advertise
bind pubm -|- *#* advertise_kick
proc advertise_kick { nick host hand chan text } {
if {[isop $nick $chan]} { return }
putkick $chan $nick "please dont advertise here"
}
i know this is an old snippet, but i was browsing through the snippets and stumbled upon this one.
i see that the author has defined the chanflag advertise (\"setudef flag advertise\"), but hasn\'t used it at all. if this is to be turned on or off, the line that contains:
if {[isop $nick $chan]} { return }
should be replaced with this:
if {[isop $nick $chan] || ![channel get $chan advertise]} { return }