From ddaacdbda2467015e0aaae4c60f2f7afccbcf17a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?B=C3=A4r=20Halberkamp?= Date: Mon, 26 Nov 2018 16:26:59 +0100 Subject: [PATCH] Make /markshared send output to staff room --- chat-commands.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/chat-commands.js b/chat-commands.js index 830702a6d4..f144d2ce05 100644 --- a/chat-commands.js +++ b/chat-commands.js @@ -2853,7 +2853,12 @@ const commands = { Punishments.addSharedIp(ip, note); note = ` (${note})`; this.globalModlog('SHAREDIP', ip, ` by ${user.name}${note}`); - return this.addModAction(`The IP '${ip}' was marked as shared by ${user.name}.${note}`); + + const message = `The IP '${ip}' was marked as shared by ${user.name}.${note}`; + const staffRoom = Rooms('staff'); + if (staffRoom) return staffRoom.addByUser(user, message); + + return this.addModAction(message); }, marksharedhelp: [`/markshared [IP], [owner/organization of IP] - Marks an IP address as shared. Note: the owner/organization (i.e., University of Minnesota) of the shared IP is required. Requires @, &, ~`],