/modlog in staff room defaults to global

There's /modlog staff, if for whatever reason you need a modlog for
the staff room specifically.
This commit is contained in:
Guangcong Luo 2015-06-27 22:44:53 -04:00
parent aeacf464e1
commit a61bd2d1d8

View File

@ -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';