mIRC Homepage
Posted By: NoodleBear Timestamp specific - 22/02/07 11:13 AM
Is there any addon or script where you can just have timestamps assigned/shown for one specific IRC nick and nothing else?

Or, one that only shows a timestamp for a join notify on sysreset's notify in the status window so you know who signed on at what time.
Posted By: Doqnach Re: Timestamp specific - 22/02/07 08:53 PM
maybe no pre-written but it can be made
Posted By: DJ_Sol Re: Timestamp specific - 22/02/07 10:03 PM
echo -t is how you show time stamp. So you could say.

on !*:text:*:#:{
if ($nick == soandso) echo -t $nick $+ : $1-
halt
}

Posted By: Riamus2 Re: Timestamp specific - 22/02/07 10:05 PM
Don't forget the ^ so that you are halting the text and not seeing duplicates. And, since your own text isn't in an on TEXT event, you don't need to use the ! to make it not trigger for yourself. smile

on ^*:text:*:#: {
Posted By: NoodleBear Re: Timestamp specific - 23/02/07 01:34 AM
It doesn't seem to be working right. In sysreset when I clicked on "display -> time" in the notify options it seems to only show how long the name has been signed in for. Or sometimes it shows weird numbers that isn't the time.

I have my notify on for certain people but I want to know what time they sign on and off with a normal IRC/Sysreset timestamp when I am not around. It works when I enable timestamps as a whole but I don't like timestamps in the channels and in PMs so I only want it to display for notifies.
Posted By: Riamus2 Re: Timestamp specific - 23/02/07 02:45 AM
Try:

Code:
on ^*:notify: {
  if ($nick == somenick) { echo $+(,$color(notify),* [,$time,]) $nick $+([,$wildsite,]) in on IRC | haltdef }
}

on ^*:unotify: {
  if ($nick == somenick) { echo $+(,$color(notify),* [,$time,]) $nick $+([,$wildsite,]) has left IRC | haltdef }
}


Change somenick to whatever nick you want this to work for since you mentioned only wanting it to work for certain people. To have more than one person, you can use:

Code:
if ($nick == somenick || $nick == somenick2 || $nick == somenick3) { }


Or, to have it work for everyone, just remove the IF part of that.

The only thing I found that is different from what mIRC's default message shows is the address. I can't grab $address when they join, so I have to use $wildsite, which gives *!* instead of the just the ident. It's a minor issue, imo, but it is different from the default output.
Posted By: NoodleBear Re: Timestamp specific - 23/02/07 07:40 AM
That works thank you!

I just have one more question. Now when my notifies come on it doesn't play the ping/noise I assigned to it. Is there any way to get around that?
Posted By: Trixar_za Re: Timestamp specific - 23/02/07 09:47 AM
Well just add -bf after the echo command like(to use Riamus2's code) :
Code:
on ^*:notify: {
  if ($nick == somenick) { echo -bf $+(,$color(notify),* [,$time,]) $nick $+([,$wildsite,]) in on IRC | haltdef }
}


Now it should make the sound assigned to it, but so far only tried it with my script for replacing the < > around nicknames with [], so a correction would be welcome if I'm wrong smile
Posted By: NoodleBear Re: Timestamp specific - 24/02/07 01:33 AM
Hm, that doesn't seem to work either. frown
Posted By: Riamus2 Re: Timestamp specific - 24/02/07 02:42 AM
Unless someone else knows how, I'd suggest using a "homemade" sound...

Code:
on ^*:notify: {
  if ($nick == somenick) {
    echo $+(,$color(notify),* [,$time,]) $nick $+([,$wildsite,]) in on IRC
    .splay notify.wav
    haltdef
  }
}

on ^*:unotify: {
  if ($nick == somenick) {
    echo $+(,$color(notify),* [,$time,]) $nick $+([,$wildsite,]) has left IRC
    .splay unotify.wav
    haltdef
  }
}
Posted By: NoodleBear Re: Timestamp specific - 24/02/07 12:28 PM
Somehow that seems to just make the timestamp dissapear at notify alert again. Eugh, sorry for all this trouble, but it's still not totally working.
Posted By: Riamus2 Re: Timestamp specific - 24/02/07 01:23 PM
Make sure that you have the sound file that you specify. I tested here and it works fine. Also, make sure that you don't have another on NOTIFY or on UNOTIFY script that is conflicting somehow.
Posted By: NoodleBear Re: Timestamp specific - 25/02/07 10:44 PM
I got it now! Thank you so much!
© mIRC Discussion Forums