mIRC Home    About    Download    Register    News    Help

Print Thread
How to message a user who's joined the channel? #211852 03/05/09 02:10 AM
Joined: Mar 2009
Posts: 4
P
prophetz Offline OP
Self-satisified door
OP Offline
Self-satisified door
P
Joined: Mar 2009
Posts: 4
Hi, I would like to have a script where when a person joins the channel they get /msg'ed with blahblah

I've had a google around (as you do) and found this :

(err i've actually lost it, but it was something like..)

On *:JOIN:#channel.name: {
msg $nick (your message)

it didn't seem to work - I use the Quakenet network by the way

Any ideas?

Thanks

Re: How to message a user who's joined the channel? [Re: prophetz] #211853 03/05/09 02:17 AM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
type /help on join

the very first example is what you want.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: How to message a user who's joined the channel? [Re: prophetz] #211867 03/05/09 05:53 AM
Joined: May 2009
Posts: 1
Y
yidanilazahg Offline
Mostly harmless
Offline
Mostly harmless
Y
Joined: May 2009
Posts: 1
I use this to auto-greet people entering the #chatzone channel:

on 1:JOIN:#chatzone: {
.notice $nick Hi $nick , welcome!
}


for for more channels, juz copy & paste the whole command, and change the channel name.

gudluck

Re: How to message a user who's joined the channel? [Re: yidanilazahg] #211871 03/05/09 08:07 AM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
"Just copy and paste"-- no.

If you read the help you'd see you can specify multiple channels together if they're comma separated:

on *:JOIN:#chan1,#chan2,...:/msg $nick hi

There's no reason to copy the entire event.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Re: How to message a user who's joined the channel? [Re: argv0] #212067 10/05/09 04:12 AM
Joined: Mar 2009
Posts: 4
P
prophetz Offline OP
Self-satisified door
OP Offline
Self-satisified door
P
Joined: Mar 2009
Posts: 4
No recipient given (PRIVMSG)
8,2.: [05:11]8,2:.11,12niouuk8,2.:0,1


doesn't seem to work

}
ON *:JOIN:#loltest,#loltest2: {
//msg $nick messagehere
}

Could someone give me working code please? frown

i've tried it myself, I get a blank message in some weird colours

Re: How to message a user who's joined the channel? [Re: prophetz] #212068 10/05/09 05:03 AM
Joined: Aug 2004
Posts: 7,252
R
RusselB Offline
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Code:
on *:join:#loltest,#loltest2:{
msg $nick message here
}


Re: How to message a user who's joined the channel? [Re: prophetz] #212069 10/05/09 07:18 AM
Joined: Oct 2003
Posts: 3,918
A
argv0 Offline
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Looks like you have a script that's messing with your /msg command

The code you pasted is fine.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"