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
1 changed files with 5 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue