mirror of
https://codeberg.org/emersion/gamja
synced 2025-03-12 15:33:47 +01:00
components/buffer: handle TOPIC clear messages
This commit is contained in:
parent
4d988c98d0
commit
ec5e67336f
@ -274,9 +274,15 @@ class LogLine extends Component {
|
||||
break;
|
||||
case "TOPIC":
|
||||
let topic = msg.params[1];
|
||||
content = html`
|
||||
${createNick(msg.prefix.name)} changed the topic to: ${linkify(stripANSI(topic), onChannelClick)}
|
||||
`;
|
||||
if (topic) {
|
||||
content = html`
|
||||
${createNick(msg.prefix.name)} changed the topic to: ${linkify(stripANSI(topic), onChannelClick)}
|
||||
`;
|
||||
} else {
|
||||
content = html`
|
||||
${createNick(msg.prefix.name)} cleared the topic
|
||||
`;
|
||||
}
|
||||
break;
|
||||
case "INVITE":
|
||||
invitee = msg.params[0];
|
||||
|
Loading…
x
Reference in New Issue
Block a user