Handle incoming MODE messages in appropriate buffer

This commit is contained in:
Drew DeVault 2021-05-27 09:34:43 -04:00 committed by Simon Ser
parent 0b1c4da0ce
commit a0c85c3372
2 changed files with 11 additions and 0 deletions

View File

@ -657,6 +657,12 @@ export default class App extends Component {
});
}
break;
case "MODE":
var target = msg.params[0];
if (this.isChannel(target)) {
this.addMessage(netID, target, msg);
}
break;
case "NOTICE":
case "PRIVMSG":
var target = msg.params[0];

View File

@ -104,6 +104,11 @@ class LogLine extends Component {
${createNick(msg.prefix.name)} has quit
`;
break;
case "MODE":
content = html`
* ${createNick(msg.prefix.name)} sets mode ${msg.params.slice(1).join(" ")}
`;
break;
case "NICK":
var newNick = msg.params[0];
content = html`