mIRC Home    About    Download    Register    News    Help

Print Thread
#171291 22/02/07 11:13 AM
Joined: Dec 2006
Posts: 14
N
Pikka bird
OP Offline
Pikka bird
N
Joined: Dec 2006
Posts: 14
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.

Joined: Jan 2003
Posts: 1,063
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2003
Posts: 1,063
maybe no pre-written but it can be made


If it ain't broken, don't fix it!
Joined: Jan 2007
Posts: 1,156
D
Hoopy frood
Offline
Hoopy frood
D
Joined: Jan 2007
Posts: 1,156
echo -t is how you show time stamp. So you could say.

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


Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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:*:#: {


Invision Support
#Invision on irc.irchighway.net
Joined: Dec 2006
Posts: 14
N
Pikka bird
OP Offline
Pikka bird
N
Joined: Dec 2006
Posts: 14
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.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Joined: Dec 2006
Posts: 14
N
Pikka bird
OP Offline
Pikka bird
N
Joined: Dec 2006
Posts: 14
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?

Joined: Feb 2007
Posts: 75
T
Babel fish
Offline
Babel fish
T
Joined: Feb 2007
Posts: 75
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


GigIRC Network Admin
irc.gigirc.com
Joined: Dec 2006
Posts: 14
N
Pikka bird
OP Offline
Pikka bird
N
Joined: Dec 2006
Posts: 14
Hm, that doesn't seem to work either. frown

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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
  }
}


Invision Support
#Invision on irc.irchighway.net
Joined: Dec 2006
Posts: 14
N
Pikka bird
OP Offline
Pikka bird
N
Joined: Dec 2006
Posts: 14
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.

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
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.


Invision Support
#Invision on irc.irchighway.net
Joined: Dec 2006
Posts: 14
N
Pikka bird
OP Offline
Pikka bird
N
Joined: Dec 2006
Posts: 14
I got it now! Thank you so much!


Link Copied to Clipboard