From: Christian Heller Date: Thu, 24 Dec 2020 22:16:06 +0000 (+0100) Subject: Fix invalid admin state upon re-login. X-Git-Url: https://plomlompom.com/repos/%22https:/validator.w3.org/%7B%7Byoutube_prefix%7D%7D%7B%7Bresult.id%7D%7D?a=commitdiff_plain;h=afca68ffc4beb3a8365875d459fc2ce05784f2c0;p=plomrogue2 Fix invalid admin state upon re-login. --- diff --git a/rogue_chat.html b/rogue_chat.html index 54ff72b..e7004a1 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -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']); diff --git a/rogue_chat_curses.py b/rogue_chat_curses.py index c4d0ddf..9d2ab3b 100755 --- a/rogue_chat_curses.py +++ b/rogue_chat_curses.py @@ -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')