mIRC Homepage
I need to send a command every time MY client joins a channel. So far, I can't seem to figure out exactly how to make it recognize me as having joined the channel and in turn send the command. This is the command I've been trying to make work:

}
on *:join:#: {
if ($nick == $me) {
who $chan
.timerSENDCMD 1 3 <command>
}
}

Can anyone help me get this working?

Thanks.
Code:
on me:*:join:#: {
  who $chan
  .timerSENDCMD 1 3 <command>
}


That should work.
Originally Posted By: Riamus2
Code:
on me:*:join:#: {
  who $chan
  .timerSENDCMD 1 3 <command>
}


That should work.


Thanks for that, but it doesn't work. Could it be the timer? Maybe the script needs to be on the channel longer before it sends the command?

Thanks.
If you're wanting to wait until the /who is complete, you might try
Code:
on me:*:join:#:{
.enable #who_chan
.who $chan
}
#who_chan off
raw 315:*:{
<command>
.disable #who_chan
haltdef
}
raw *:*: halt
#who_chan end


Replace <command> with the command you're wanting.
Originally Posted By: RusselB
If you're wanting to wait until the /who is complete, you might try
Code:
on me:*:join:#:{
.enable #who_chan
.who $chan
}
#who_chan off
raw 315:*:{
<command>
.disable #who_chan
haltdef
}
raw *:*: halt
#who_chan end


Replace <command> with the command you're wanting.


Thanks Russel, but that's not working either. Does anyone have any other suggestions?

What are you trying to send to the channel?
I'm not trying to send it to the channel, but rather to post an alias command that works if I manually post /send_listall. That alias command properly triggers my alias script, but I can't seem to get it to send the command /send_listall automatically when I join a channel.

If you have any suggestions, please let me know.

Thanks again for all your help.

© mIRC Discussion Forums