advertise kick version 1.1 (update)

By Magnetronkip on Jun 01, 2005

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" 
}

Comments

Sign in to comment.
krimson   -  Jul 05, 2006

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 }

 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.