|
Joined: May 2018
Posts: 220
Fjord artisan
|
OP
Fjord artisan
Joined: May 2018
Posts: 220 |
I've used this little script for 20+ years, posting for archival purposes: on *:TEXT:*:#:{
if ($me isin $strip($1-)) {
echo -dt 4 $+ $nick $+ on 4 $+ # $+ $+ : $+(4 $+ ,$1-, $+ )
}
}
|
|
|
|
Joined: Feb 2003
Posts: 2,812
Hoopy frood
|
Hoopy frood
Joined: Feb 2003
Posts: 2,812 |
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!
|
|
|
|
Joined: May 2018
Posts: 220
Fjord artisan
|
OP
Fjord artisan
Joined: May 2018
Posts: 220 |
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. 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.
|
|
|
|
Joined: May 2018
Posts: 220
Fjord artisan
|
OP
Fjord artisan
Joined: May 2018
Posts: 220 |
Cleaned a little, added the msg timestamp to the line, useful for the ZNC buffer playback. Thanks maroon on ##mirc/freendoe as usual. 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-)
}
}
|
|
|
|
Joined: May 2018
Posts: 220
Fjord artisan
|
OP
Fjord artisan
Joined: May 2018
Posts: 220 |
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: 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-)
}
}
|
|
|
|
Joined: May 2018
Posts: 220
Fjord artisan
|
OP
Fjord artisan
Joined: May 2018
Posts: 220 |
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. 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.
|
|
|
|
|