mIRC Home    About    Download    Register    News    Help

Print Thread
G
Gwion
Gwion
G
Hi,

I'd like to greet visitors joining my channel with a message that gives some info. Joining visitors mainly have the nick guestxyz (xyz is a number) but some
have other nicks. The guest visitors should get a different message if possible.
I have no clues (well, only very few) about scripting and would need a detailed help how to write that.

Thanks in advance.
Gwion

W
watcher
watcher
W
Code:
on *:join:#chan:{
  if $nick != $me {
   if guest* iswm $nick { msg $nick ... }
   else { msg $nick .... }
 }
}

:]

Last edited by watcher; 20/12/02 10:49 AM.
G
Gwion
Gwion
G
Hi,

Thanks.
The message now appears in the status window.
Is there a way to display it in the main channel window for the user?

Gwion

W
watcher
watcher
W
msg # smile

Joined: Dec 2002
Posts: 1,536
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Dec 2002
Posts: 1,536
try:

on !*:join:#mychannel:{
if guest* iswm $nick { msg $chan $nick ... }
else { msg $chan $nick .... }
}

You should only do this for channels that say you can. All other channels MIGHT ban you for this kind of stuff. Some things to note:

1) the ! switch replace if ($nick != $me)
2) #mychan is your channel (not somebody else's) unless you get approval from the ops in another channel to use that


Those who fail history are doomed to repeat it
Joined: Dec 2002
Posts: 1,214
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 1,214
on *:JOIN:#: {
/notice $nick <messag>!
}

That works for me anyways....i can see it in my channel window but whom ever states it usually shows it in their status (i like to keep it simple)


Link Copied to Clipboard