mIRC Home    About    Download    Register    News    Help

Print Thread
Message window on highlights and mentions #263189 12/06/18 07:57 AM
Joined: May 2018
Posts: 119
eahm Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: May 2018
Posts: 119
I've used this little script for 20+ years, posting for archival purposes:

Code:
on *:TEXT:*:#:{
  if ($me isin $strip($1-)) {
    echo -dt 4 $+ $nick $+  on 4 $+ # $+  $+ : $+(4 $+ ,$1-, $+ )
  }
}

Re: Message window on highlights and mentions [Re: eahm] #263191 12/06/18 10:51 AM
Joined: Feb 2003
Posts: 2,690
Raccoon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2003
Posts: 2,690
Fair use of the Single Message Window (/dqwindow) to store when people mention your name.


Well. At least I won lunch.
Good philosophy, see good in bad, I like!
Re: Message window on highlights and mentions [Re: eahm] #263197 12/06/18 05:29 PM
Joined: May 2018
Posts: 119
eahm Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: May 2018
Posts: 119
I didn't remember this scripting thing to be so damn hard, worked together to try to understand better and Ouims and maroon helped again on ##mirc freenode to get the code a little cleaner.

Also the text is now in normal text color and not in red.

Again, posting for archival purposes.

Code:
on *:TEXT:*:#:{
  if ($me isin $strip($1-)) {
    echo -dt $+($chr(3),4,$nick,$chr(3) on $chr(3),4,#,$chr(3),:,$chr(3) $1-)
  }
}

Last edited by eahm; 12/06/18 05:44 PM.
Re: Message window on highlights and mentions [Re: eahm] #266851 21/02/20 05:42 PM
Joined: May 2018
Posts: 119
eahm Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: May 2018
Posts: 119
Cleaned a little, added the msg timestamp to the line, useful for the ZNC buffer playback.

Thanks maroon on ##mirc/freendoe as usual.

Code
on *:TEXT:*:#:{
  if ($me isin $strip($1-)) {
    echo -dt $+ $asctime($msgstamp, yyyy/mm/dd HH:nn:ss) $+($chr(3),4,#,$chr(3),: < $+ $chr(3),2,$nick,$chr(3),> $chr(3),7,$1-)
  }
}

Re: Message window on highlights and mentions [Re: eahm] #266855 22/02/20 07:48 AM
Joined: May 2018
Posts: 119
eahm Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: May 2018
Posts: 119
The previous one is not working properly (maroon actually told me it wasn't going to work that way but I forgot I guess), it's not showing "yyyy/mm/dd" so, this one works just fine:

Code
on *:TEXT:*:#:{
  if ($me isin $strip($1-)) {
    echo -dt $+ $msgstamp $+($chr(3),4,#,$chr(3) < $+ $chr(3),2,$nick,$chr(3),> $chr(3),7,$1-)
  }
}

Re: Message window on highlights and mentions [Re: eahm] #267048 28/03/20 01:32 AM
Joined: May 2018
Posts: 119
eahm Offline OP
Vogon poet
OP Offline
Vogon poet
Joined: May 2018
Posts: 119
Ok, two more fixes:

1) The script didn't work with /me msgs.
2) If the msg was starting with a number the script was re-coloring the whole mentioned msg.

Code
on *:TEXT:*:#:{
  if ($me isin $strip($1-)) {
    echo -dt $+ $msgstamp $+($chr(3),4,#,$chr(3) < $+ $chr(3),2,$nick,$chr(3),> $+ $chr(3),7 $1-)
  }
}
on *:ACTION:*:#:{
  if ($me isin $strip($1-)) {
    echo -dt $+ $msgstamp $+($chr(3),4,#,$chr(3) $chr(3),6,*,$chr(3) < $+ $chr(3),2,$nick,$chr(3),> $+ $chr(3),7 $1-)
  }
}

Thanks to KindOne on ##mirc/freenode for the first point's suggestion fix.