mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-05-23 08:16:16 -05:00
Allow global warns in adminlog (#8544)
This commit is contained in:
parent
fffa141ad0
commit
dc463cf1bd
|
|
@ -541,7 +541,10 @@ export const commands: Chat.ChatCommands = {
|
|||
return this.errorReply("Warning is unavailable in group chats.");
|
||||
}
|
||||
// If used in pms, staff, help tickets or battles, log the warn to the global modlog.
|
||||
const globalWarn = !room || room.roomid === 'staff' || room.roomid.startsWith('help-') || (room.battle && !room.parent);
|
||||
const globalWarn = (
|
||||
!room || ['staff', 'adminlog'].includes(room.roomid) ||
|
||||
room.roomid.startsWith('help-') || (room.battle && !room.parent)
|
||||
);
|
||||
|
||||
const {targetUser, inputUsername, targetUsername, rest: reason} = this.splitUser(target);
|
||||
const targetID = toID(targetUsername);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user