From 1f65215b70d2a8a255aa9327497b88b94c4b1f17 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Wed, 25 Nov 2020 01:04:18 +0100 Subject: [PATCH] Put admin stuff into dedicated admin mode. --- plomrogue/commands.py | 1 + rogue_chat.html | 77 ++++++++++++++++++++++++++++++------------- rogue_chat_curses.py | 45 ++++++++++++++++++------- 3 files changed, 90 insertions(+), 33 deletions(-) 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: