mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2006
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2006
Posts: 35
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.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Code:
on me:*:join:#: {
  who $chan
  .timerSENDCMD 1 3 <command>
}


That should work.


Invision Support
#Invision on irc.irchighway.net
Joined: Nov 2006
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2006
Posts: 35
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.

Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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.

Joined: Nov 2006
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2006
Posts: 35
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?


Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
What are you trying to send to the channel?


Invision Support
#Invision on irc.irchighway.net
Joined: Nov 2006
Posts: 35
N
Ameglian cow
OP Offline
Ameglian cow
N
Joined: Nov 2006
Posts: 35
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.



Link Copied to Clipboard