Code: Select all
proc proc_ban2 { nick uhost hand chan text } {
global botnick
if {[onchan $text]} {
if {$text == $botnick} { return 0 }
set banmask [getchanhost $text $chan]
putquick "MODE $chan +b $banmask"
putkick $chan $text :Requested
utimer 5 "putserv {MODE $chan -b $banmask}"
} else { putserv "PRIVMSG $chan :$text Is Not In The Channel" }
}
Code: Select all
if {[isop $nick $chan]} {
#continue with ur proc here
Code: Select all
if {[matchattr $hand o|o $chan]} {
#or
if {[matchattr $hand o|o]} {