From 88f06dc404a4b6db72d12da91cee9df8c90e2dbf Mon Sep 17 00:00:00 2001 From: Zerapium Date: Wed, 9 Jul 2025 12:39:34 +0530 Subject: [PATCH] allow use of /warn in subroomgroupchats --- server/chat-commands/moderation.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/chat-commands/moderation.ts b/server/chat-commands/moderation.ts index 442d12f971..c2adaf0002 100644 --- a/server/chat-commands/moderation.ts +++ b/server/chat-commands/moderation.ts @@ -538,7 +538,7 @@ export const commands: Chat.ChatCommands = { warn(target, room, user) { if (!target) return this.parse('/help warn'); this.checkChat(); - if (room?.settings.isPersonal && !user.can('warn' as any)) { + if (room?.settings.isPersonal && !user.can('warn' as any) && !room.parent) { throw new Chat.ErrorMessage("Warning is unavailable in group chats."); } // If used in pms, staff, help tickets or battles, log the warn to the global modlog.