mirror of
https://github.com/smogon/pokemon-showdown.git
synced 2026-06-02 22:08:36 -05:00
allow use of /warn in subroomgroupchats
This commit is contained in:
parent
3bab394e1b
commit
88f06dc404
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user