Oto mesaj (Tcl)

Oto msj Kanal girenlere otomatik mesaj yazar.

set onjoin_msg {
{
“Welcome to Channel \$chan \$nick”
}
}
set onjoin_chans “#BG® #eg-lovech”

bind join - * join_onjoin

putlog “Onjoin.tcl 0.1 by Banned loaded”

proc join_onjoin {nick uhost hand chan} {
global onjoin_msg onjoin_chans botnick
if {(([lsearch -exact [string tolower $onjoin_chans] [string tolower $chan]] != -1) || ($onjoin_chans == “*”)) && (![matchattr $hand b]) && ($nick != $botnick)} {
set onjoin_temp [lindex $onjoin_msg [rand [llength $onjoin_msg]]]
foreach msgline $onjoin_temp {
puthelp “NOTICE $nick :[subst $msgline]”
}
}
}

Yorum Yapın