mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-09-13 11:45:40 -05:00
Make /markshared send output to staff room
This commit is contained in:
@@ -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 @, &, ~`],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user