Handle incoming MODE messages in appropriate buffer

This commit is contained in:
Drew DeVault authored and Simon Ser committed 2021-05-27 18:01:58 +02:00
1 parent 0b1c4da0ce
commit a0c85c3372
2 files changed
+11

No files matched your search

+6
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];
+5
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`