Code: Select all
bind pubm -|- * protect:channel
proc protect:channel {nick uhost handle channel text} {
if {(![botisop $channel]) || ([isop $nick $channel])} {return 0}
if {([matchattr $handle o]) || ([matchattr $handle f])} {return 0}
Code: Select all
set banmask "*[M]*!*@*"
set blacklist($banmask)
bind join -|- * BLK:J
proc BLK:J {N uhost H C} {
set U "$N![getchanhost $N]"
foreach E [array names blacklist] {
if {[string match -nocase $E $U]} {
Code: Select all
if {[catch {after cancel $state(after)}]} {}