Code: Select all
bind join - * onjoin:msg
proc onjoin:msg {nick host hand chan} {
if {$host == "~ident@host.mask"} {
putquick "PRIVMSG $chan : Message for user 1"
} elseif {$host == "~ident@another.host.mask"} {
putquick "PRIVMSG $chan : Message for user 2"
} elseif {$host == "*.*@another.host.mask"} {
putquick "PRIVMSG $chan : Message for users from hostmask"
}
}
I get no errors but the bot doesnt put the msg to the channel when the user joins
Can anyone see from the code what ive done wrong?
How would i add a pause/delay into the script so that the bot pauses for say 5 seconds before it posts the msg?
Any help greatly appreciated
Regards
Reserve