mIRC Home    About    Download    Register    News    Help

Print Thread
basic onjoin welcome #66858 06/01/04 10:28 PM
Joined: Jan 2004
Posts: 4
S
SevensSins Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jan 2004
Posts: 4
i just want my mirc to welcome people in to chat
this isnt working. i tried a number of variations but no go
on *:JOIN:*:{
$chan /msg Hello and welcome $nick blah blah blah | halt }

if someone could take the time to explain it a bit to me or point me to a help page that does smile
it is in remote hope thats right

Re: basic onjoin welcome #66859 06/01/04 10:33 PM
Joined: Jan 2003
Posts: 1,063
D
Doqnach Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
Code:
on *:JOIN:#channelname: {
  msg $chan Hello and welcome $nick blah blah blah
}


you should use it for only a single channel or a set of channels... not for every channel...

most people do not like this sort of spam ;-]


If it ain't broken, don't fix it!
Re: basic onjoin welcome #66860 06/01/04 11:16 PM
Joined: Jan 2004
Posts: 4
S
SevensSins Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jan 2004
Posts: 4
ty i am channel admin
will that go to the room or just the entering chatter confusedbe more discrete if it goes to the enter chatter

Re: basic onjoin welcome #66861 06/01/04 11:29 PM
Joined: Jan 2003
Posts: 1,063
D
Doqnach Offline
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
this will go to the room...

Code:
on *:JOIN:#channelname: {
  if ($nick != $me) .msg $nick Hello and welcome to $chan blah blah blah
}


improvement on the code and changed into messaging the person who joins... change .msg to .notice if you don't want to PM (which imho is better)


If it ain't broken, don't fix it!
Re: basic onjoin welcome #66862 06/01/04 11:47 PM
Joined: Jan 2004
Posts: 4
S
SevensSins Offline OP
Self-satisified door
OP Offline
Self-satisified door
S
Joined: Jan 2004
Posts: 4
ty for your help works a dream cool
i dont like the PM idea either wink a bit intrusive to the entering chatter

Re: basic onjoin welcome #66863 07/01/04 11:41 PM
Joined: Dec 2002
Posts: 1,527
L
landonsandor Offline
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,527
FYI, this will work the same and negates the if comparison:

on !*:JOIN:#channelname:.msg $nick Hello and welcome to $chan blah blah blah

The ! is the same as saying if ($nick != $me)


Those who fail history are doomed to repeat it