From 43345c4bf086f19f9407844588b96a3e06bb538e Mon Sep 17 00:00:00 2001 From: Tim Van Baak Date: Mon, 20 Jan 2020 12:22:13 -0800 Subject: [PATCH] Add the editor on lexicon creation --- amanuensis/lexicon/manage.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/amanuensis/lexicon/manage.py b/amanuensis/lexicon/manage.py index 31b21d1..eeff0ec 100644 --- a/amanuensis/lexicon/manage.py +++ b/amanuensis/lexicon/manage.py @@ -56,6 +56,9 @@ def create_lexicon(name, editor): config.logger.info("Created Lexicon {0.name}, ed. {1.displayname} ({0.id})".format( l, editor)) + # Add the editor + add_player(l, editor) + return l @@ -136,6 +139,8 @@ def add_player(lex, player): with config.json_rw(lex.config_path) as cfg: if player.id not in cfg.join.joined: cfg.join.joined.append(player.id) + # Log to the lexicon's log + lex.log("Player '{0.username}' joined ({0.id})".format(player)) def remove_player(lex, player):