Add /notice command

This commit is contained in:
Simon Ser 2020-08-13 11:04:39 +02:00
parent 9df58971ea
commit 11660e4409
No known key found for this signature in database
GPG key ID: 0FDE7BE0E88F5E48

View file

@ -65,6 +65,11 @@ export default {
var newNick = args[0]; var newNick = args[0];
app.client.send({ command: "NICK", params: [newNick] }); app.client.send({ command: "NICK", params: [newNick] });
}, },
"notice": (app, args) => {
var target = args[0];
var text = args.slice(1).join(" ");
app.client.send({ command: "NOTICE", params: [target, text] });
},
"buffer": (app, args) => { "buffer": (app, args) => {
var name = args[0]; var name = args[0];
if (!app.state.buffers.has(name)) { if (!app.state.buffers.has(name)) {