home · contact · privacy
Fix invalid admin state upon re-login.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 24 Dec 2020 22:16:06 +0000 (23:16 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 24 Dec 2020 22:16:06 +0000 (23:16 +0100)
rogue_chat.html
rogue_chat_curses.py

index 54ff72b1e4aa243a645186229276600d15fe55bc..e7004a177f913ed3c27e568bdf94b04d3c7f624d 100644 (file)
@@ -465,6 +465,7 @@ let server = {
         this.websocket.onopen = function(event) {
             game.thing_types = {};
             game.terrains = {};
+            tui.is_admin = false;
             server.send(['TASKS']);
             server.send(['TERRAINS']);
             server.send(['THING_TYPES']);
index c4d0ddf5b6ae023dd1b09c1cd9401645aef8211c..9d2ab3befde074db274e23349703dba0f5691b07 100755 (executable)
@@ -623,6 +623,7 @@ class TUI:
             self.disconnected = False
             self.game.thing_types = {}
             self.game.terrains = {}
+            self.is_admin = False
             time.sleep(0.1)  # give potential SSL negotation some time …
             self.socket.send('TASKS')
             self.socket.send('TERRAINS')