home · contact · privacy
Server/py: Ignore empty lines in obey().
authorChristian Heller <c.heller@plomlompom.de>
Sat, 28 Feb 2015 14:16:57 +0000 (15:16 +0100)
committerChristian Heller <c.heller@plomlompom.de>
Sat, 28 Feb 2015 14:16:57 +0000 (15:16 +0100)
plomrogue-server.py

index 0c82f05996e8bd6f6e0307305ea1b96323a59621..1792a4a6a12ede5a90e528e5f1d43c568d56d55f 100755 (executable)
@@ -86,7 +86,7 @@ def obey(command, prefix, replay=False, do_record=False):
             if do_record:
                 record(command)
                 save_world()
-    else:
+    elif 0 != len(tokens):
         print("Invalid command/argument, or bad number of tokens.")