mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-15 00:47:46 +01:00
Format NOTICE messages differently
Use dashes instead of angle brackets for NOTICE to be able to tell them apart from regular PRIVMSG messages.
This commit is contained in:
parent
0f2d1c3e71
commit
b23f55a840
@ -72,7 +72,11 @@ class LogLine extends Component {
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
lineClass = "talk";
|
lineClass = "talk";
|
||||||
content = html`${"<"}${createNick(msg.prefix.name)}${">"} ${linkify(stripANSI(text))}`;
|
var prefix = "<", suffix = ">";
|
||||||
|
if (msg.command == "NOTICE") {
|
||||||
|
prefix = suffix = "-";
|
||||||
|
}
|
||||||
|
content = html`${prefix}${createNick(msg.prefix.name)}${suffix} ${linkify(stripANSI(text))}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (msg.isHighlight) {
|
if (msg.isHighlight) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user