Code: Select all
bind join - * join_join
bind part - * part_part
set chan1 "#chan1"
set chan2 "#chan2"
proc join_join {nick uhost hand chan} {
global chan1 chan2
if {$chan == "$chan1"} {
putmsg $chan2 "$nick has joined $chan1"
} else {
return
}}
proc part_part {nick uhost hand chan} {
global chan1 chan2
if {$chan == "$chan1"} {
putmsg $chan2 "$nick has left $chan1"
} else {
return
}}
I tried renamed procedures by others, but always gives me error BIND part.