it's not working, i get $chan not defined
i did it in other ways but i bumped into another prob
with is if 2 users join within less than 10 seconds
the last to join gets messaged twice
any one can help with that?
Code: Select all
bind join - * join_am
proc join_am { nick host hand chan rest } {
utimer 10 {
if {![isop $nick $chan] && $nick != "xx" && $nick != "yy" } {
if {((![isbotnick $nick]) && (![isbotnick [hand2nick $hand $chan]]))} {
if {(([onchan $nick $chan]) && ("[getchanhost $nick $chan]" == "$host")) || (![isop $nick $chan])} {
# They still have the nick they joined with.
putserv "PRIVMSG [hand2nick $hand $chan] :Hi, Please \002DO NOT REPLY\002: just checking if you are infected."
} elseif {((![onchan $nick $chan]) && ([handonchan $hand $chan]) || (![isop [hand2nick $hand $chan] $chan])))} {
# They most likely changed nicks after joining.
putserv "PRIVMSG [hand2nick $hand $chan] :Hi, Please \002DO NOT REPLY\002: just checking if you are infected."
}
}
}
}
}