From 11660e44092a6dc38637c457feabf803887a046f Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Thu, 13 Aug 2020 11:04:39 +0200 Subject: [PATCH] Add /notice command --- commands.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/commands.js b/commands.js index ae120d5..7cd9a58 100644 --- a/commands.js +++ b/commands.js @@ -65,6 +65,11 @@ export default { var newNick = args[0]; 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) => { var name = args[0]; if (!app.state.buffers.has(name)) {