From eba3230470f350da43dc712b815be93902e34597 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Tue, 10 Nov 2020 03:45:36 +0100
Subject: [PATCH] Update flatten authorization in web client.

---
 rogue_chat_nocanvas_monochrome.html | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rogue_chat_nocanvas_monochrome.html b/rogue_chat_nocanvas_monochrome.html
index 942cdbf..e6ba4a7 100644
--- a/rogue_chat_nocanvas_monochrome.html
+++ b/rogue_chat_nocanvas_monochrome.html
@@ -796,7 +796,7 @@ tui.inputEl.addEventListener('keydown', (event) => {
               tui.switch_mode(mode_password);
           } else if (event.key === tui.keys.flatten
                      && game.tasks.includes('FLATTEN_SURROUNDINGS')) {
-              server.send(["TASK:FLATTEN_SURROUNDINGS"]);
+              server.send(["TASK:FLATTEN_SURROUNDINGS", tui.password]);
           } else if (event.key in tui.movement_keys
                      && game.tasks.includes('MOVE')) {
               server.send(['TASK:MOVE', tui.movement_keys[event.key]]);
-- 
2.30.2