bind pub - @bots pub_script_bots proc pub_script_bots {nick uhost hand chan arg} { global botnick owner realname if { $chan != "#script" } { return 1 } set message "$realname." if { [string match $arg ""] } { putquick "NOTICE $nick :Bot \002$botnick\002 here owned by \002$owner\002." } elseif { [string match [lindex [split $arg] 0] $botnick] } { putquick "NOTICE $nick :Bot \002$botnick\002 here owned by \002$owner\002. $message" } elseif { [string match [lindex [split $arg] 0] $owner] } { putquick "NOTICE $nick :Bot \002$botnick\002 here. $message" } else { return 1 } return 0 }