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:
Simon Ser 2020-08-17 15:08:37 +02:00
parent 0f2d1c3e71
commit b23f55a840
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -72,7 +72,11 @@ class LogLine extends Component {
}
} else {
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) {