mIRC Homepage
Posted By: Dogetela /msg user - 12/01/06 08:37 PM
hey all,

I am very new to this. I wanted a little script that messages a user when they logon to a irc server...

XXX joins server XXX.blah.org

then they receive a msg in there private box...

Hey there!

Any help would be great.
Posted By: sparta Re: /msg user - 12/01/06 08:40 PM
I guess you only can do that if you have oper status on that network/server.. corect me if im wrong.. wink
Posted By: Dogetela Re: /msg user - 12/01/06 08:44 PM
its more like a noticifcation, as when someone in your notify list logs in,
there is a msg thats displayed

when that happens then i would like to be able to send them a msg.

is that possible
Posted By: sparta Re: /msg user - 12/01/06 08:49 PM
ahh..
Code:
on *:NOTIFY:{ 
echo -a $nick signed in at $time
.msg $nick Hi how are you today?
}
on *:UNOTIFY:{
echo -a $nick left irc at $time
}

that goes in to your remote.. ALT + R in mirc..

EDIT -------------------

You wont see the message you send to the user, remove the "." infront of .msg and u will see it..
Posted By: Dogetela Re: /msg user - 12/01/06 11:03 PM
Thats perfect!!

Now.. is it possible, for it to be more user specific... ie

Matt - Hey there
Mark - Good Day
Luke - How ya doing
John - Long time no see

cheerz
Posted By: schaefer31 Re: /msg user - 13/01/06 12:01 AM
In simplest form:

Code:
on *:NOTIFY:{ 
  if ($nick == Matt) { .msg $nick Hey there }
  else if ($nick == Mark) { .msg $nick Good Day }
  else if ($nick == Luke) { .msg $nick How ya doing }
  else if ($nick == John) { .msg $nick Long time no see }
}


I'd suggest however that you make use of userlevels.
Have a look at /help access levels as well as /help $level.
Posted By: sparta Re: /msg user - 13/01/06 02:21 AM
does it mather? wink i cant see any harm in that the wrong person may get the msg? no password or any other info is sent true the text.. the worst that chan happen is that he maybe have to write: "Sorry i belived it was my friend" smile
Posted By: schaefer31 Re: /msg user - 13/01/06 03:21 AM
It doesn't necessarily matter. It's a cross between what type of information is being send and personal preference. Personally, I'd feel safer knowing the information is going to the exact person I intended it for.
Posted By: sparta Re: /msg user - 13/01/06 03:26 AM
i have to test it.. and since the on *:NICK: was there i used it.. smile thnx for your help smile have a nice night/day #depending on ur timezone", here its soon morning, so time for bed grin
Posted By: Dogetela Re: /msg user - 13/01/06 02:43 PM
Cheers for all the help smile
Posted By: MikeChat Re: /msg user - 13/01/06 07:34 PM
Quote:
In simplest form:

Code:
on *:NOTIFY:{ 
  if ($nick == Matt) { .msg $nick Hey there }
  else if ($nick == Mark) { .msg $nick Good Day }
  else if ($nick == Luke) { .msg $nick How ya doing }
  else if ($nick == John) { .msg $nick Long time no see }
}


I'd suggest however that you make use of userlevels.
Have a look at /help access levels as well as /help $level.


as an example of one that I used for a DCC allow on DALnet

Code:
on *:notify:{
  if ($network == DALnet) {
    var %address $mask($wildsite,3)
    if ($nick == Mathew) && (%address == *!*@*.host.net) { notice Mathew Welcome Home Mathew }
  }
}


$wildsite doesnt have the user in the address, but as a test of the nick being the person you intended I think this is workable.
© mIRC Discussion Forums