i have a tcl scripts that is suppose tu join a channel and check if theres an X on the channel then say it to another channel everything works fine except that the eggdrop state that there is no X on the channel when there is actually one !!
if {[onchan X $req_chan]} {
set QLcheck 1
putserv "PRIVMSG $ref_chan :\002X\002 Présent sur le canal ! Demande refusée !"
} { set QLcheck 0
putserv "PRIVMSG $ref_chan :Pas de \002X\002 présent sur le canal ! Exigence \002Correcte\002 !"
}
If you launch this script immediately on bind join, then the eggdrop might not detect all users in a chan, it is always best to use a utimer. Say delay it 5-10 secs after the join.
if {[onchan "X" $ref_chan]} {
putserv "PRIVMSG $ref_chan :\002X\002 is \002present\002 on \002$ref_chan\002."
}
if {![onchan "X" $ref_chan]} {
putserv "PRIVMSG $ref_chan :\002X\002 is \002*not* present\002 on \002$ref_chan\002."
}
·awyeah·
==================================
Facebook: jawad@idsia.ch (Jay Dee) PS: Guys, I don't accept script helps or requests personally anymore.
==================================
awyeah wrote:If you launch this script immediately on bind join, then the eggdrop might not detect all users in a chan, it is always best to use a utimer. Say delay it 5-10 secs after the join.
hardly the best
the proper way to do this is to bind raw to End-of-/WHO list:
awyeah wrote:If you launch this script immediately on bind join, then the eggdrop might not detect all users in a chan, it is always best to use a utimer. Say delay it 5-10 secs after the join.
hardly the best
the proper way to do this is to bind raw to End-of-/WHO list:
awyeah wrote:If you launch this script immediately on bind join, then the eggdrop might not detect all users in a chan, it is always best to use a utimer. Say delay it 5-10 secs after the join.
hardly the best
the proper way to do this is to bind raw to End-of-/WHO list: