mirror of
https://codeberg.org/emersion/gamja.git
synced 2024-12-12 08:51:13 -05:00
components/buffer: handle TOPIC clear messages
This commit is contained in:
parent
4d988c98d0
commit
ec5e67336f
1 changed files with 9 additions and 3 deletions
|
@ -274,9 +274,15 @@ class LogLine extends Component {
|
||||||
break;
|
break;
|
||||||
case "TOPIC":
|
case "TOPIC":
|
||||||
let topic = msg.params[1];
|
let topic = msg.params[1];
|
||||||
|
if (topic) {
|
||||||
content = html`
|
content = html`
|
||||||
${createNick(msg.prefix.name)} changed the topic to: ${linkify(stripANSI(topic), onChannelClick)}
|
${createNick(msg.prefix.name)} changed the topic to: ${linkify(stripANSI(topic), onChannelClick)}
|
||||||
`;
|
`;
|
||||||
|
} else {
|
||||||
|
content = html`
|
||||||
|
${createNick(msg.prefix.name)} cleared the topic
|
||||||
|
`;
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case "INVITE":
|
case "INVITE":
|
||||||
invitee = msg.params[0];
|
invitee = msg.params[0];
|
||||||
|
|
Loading…
Reference in a new issue