From ed564b0c471df71c9623316c7bfbf06f013e2030 Mon Sep 17 00:00:00 2001
From: Christian Heller <c.heller@plomlompom.de>
Date: Wed, 11 Mar 2015 14:44:26 +0100
Subject: [PATCH] Ignore lowercase-starting (= player) commands when world is
 inactive.

---
 roguelike-server | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/roguelike-server b/roguelike-server
index 64ae118..741046a 100755
--- a/roguelike-server
+++ b/roguelike-server
@@ -124,6 +124,8 @@ def obey(command, prefix, replay=False, do_record=False):
        and len(tokens) == commands_db[tokens[0]][0] + 1:
         if commands_db[tokens[0]][1]:
             commands_db[tokens[0]][2](*tokens[1:])
+        elif tokens[0][0].islower() and not world_db["WORLD_ACTIVE"]:
+            print("Ignoring lowercase-starting commands when world inactive.")
         elif replay:
             print("Due to replay mode, reading command as 'go on in record'.")
             line = io_db["file_record"].readline()
-- 
2.30.2