From: Christian Heller Date: Wed, 25 Nov 2020 00:04:18 +0000 (+0100) Subject: Put admin stuff into dedicated admin mode. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%22https:/validator.w3.org/ledger?a=commitdiff_plain;h=1f65215b70d2a8a255aa9327497b88b94c4b1f17;p=plomrogue2 Put admin stuff into dedicated admin mode. --- diff --git a/plomrogue/commands.py b/plomrogue/commands.py index 41509df..c0470ba 100644 --- a/plomrogue/commands.py +++ b/plomrogue/commands.py @@ -98,6 +98,7 @@ def cmd_BECOME_ADMIN(game, password, connection_id): raise GameError('need to be logged in for this') if password in game.admin_passwords: game.sessions[connection_id]['status'] = 'admin' + game.io.send('ADMIN_OK', connection_id) else: raise GameError('wrong password') cmd_BECOME_ADMIN.argtypes = 'string' diff --git a/rogue_chat.html b/rogue_chat.html index 59d03a9..cf82cf9 100644 --- a/rogue_chat.html +++ b/rogue_chat.html @@ -42,33 +42,41 @@ terminal columns:
+ + + - + + - + +
+ + + + + - - - + - - +
+

edit keybindings

(see here for non-obvious available values):
@@ -93,7 +101,7 @@ terminal columns:
  • -
  • +
  • @@ -103,8 +111,8 @@ terminal columns: