maotulua wrote:> I want to say Hi to ops only upon myself entering a chat room, how would i accomplish this within a script ?
on me:*:join:#:{
.timerhi 1 3 greetings #
}
alias -l greetings {
var %h, %g 1
while $nick($1,%g,a,rv) {
%h = %h $v1
msg $1 Hello to %h
inc %g
}
}
There will be a 3-second delay when you join a channel before the code gets triggered. This is to wait til the ial is filled.