Change for line bmask 1 or line bmask 2? Or just remove both and adding only 1 line for it?Sir_Fz wrote:set bmask *!*@[lindex [split [getchanhost $nick $chan] @] 1]
this will ban in form *!*@host
Code: Select all
scan $uhost "%\[^@\]@%s" user host
newchanban $chan $host $botnick [subst $chanpro(ban_color)] $chanpro(ban_time_color)
Code: Select all
bind pubm - "*\002*" ban:colors
bind pubm - "*\003*" ban:colors
bind pubm - "*\026*" ban:colors
bind pubm - "*\037*" ban:colors
proc ban:colors {nick uhost hand chan text} {
if {[matchattr $hand of|fo $chan] || [isop $nick $chan]} {
return
}
scan $uhost "%\[^@\]@%s" user host
newchanban $chan *!*@$host Colours "No colours, bold, etc. in $chan channel." 5
}