diff --git a/server/chat-commands.js b/server/chat-commands.js index f51a2791eb..247ec88d0a 100644 --- a/server/chat-commands.js +++ b/server/chat-commands.js @@ -3895,6 +3895,9 @@ const commands = { if (!battle.allowExtraction) { battle.allowExtraction = ['', '']; } + if (user.userid === toID(battle.p1.name) || user.userid === toID(battle.p2.name)) { + this.parse(`/allowexportinputlog ${user.userid}`); + } if (battle.allowExtraction[0] !== user.userid) { const p1 = Users(battle.p1.name); if (p1) p1.sendTo(room, Chat.html`|html|${user.name} wants to extract the battle input log. `);