From a61bd2d1d8aa16028ac4e33f4e9a12d05f1732ef Mon Sep 17 00:00:00 2001 From: Guangcong Luo Date: Sat, 27 Jun 2015 22:44:53 -0400 Subject: [PATCH] /modlog in staff room defaults to global There's /modlog staff, if for whatever reason you need a modlog for the staff room specifically. --- commands.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands.js b/commands.js index f21a6f11f0..8fae0430fd 100644 --- a/commands.js +++ b/commands.js @@ -1300,7 +1300,7 @@ var commands = exports.commands = { var lines = 0; // Specific case for modlog command. Room can be indicated with a comma, lines go after the comma. // Otherwise, the text is defaulted to text search in current room's modlog. - var roomId = room.id; + var roomId = (room.id === 'staff' ? 'global' : room.id); var hideIps = !user.can('ban'); var path = require('path'); var isWin = process.platform === 'win32';