mIRC Homepage

Message window on highlights and mentions

Posted By: eahm

Message window on highlights and mentions - 12/06/18 07:57 AM

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-, $+ )
  }
}
Posted By: Raccoon

Re: Message window on highlights and mentions - 12/06/18 10:51 AM

Fair use of the Single Message Window (/dqwindow) to store when people mention your name.
Posted By: eahm

Re: Message window on highlights and mentions - 12/06/18 05:29 PM

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-)
  }
}
Posted By: eahm

Re: Message window on highlights and mentions - 21/02/20 05:42 PM

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-)
  }
}
Posted By: eahm

Re: Message window on highlights and mentions - 22/02/20 07:48 AM

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-)
  }
}
Posted By: eahm

Re: Message window on highlights and mentions - 28/03/20 01:32 AM

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.
© 2020 mIRC Discussion Forums