diff options
Diffstat (limited to 'asciifarm/client/inputhandling.hy')
| -rw-r--r-- | asciifarm/client/inputhandling.hy | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/asciifarm/client/inputhandling.hy b/asciifarm/client/inputhandling.hy index 64b67e7..9c3e254 100644 --- a/asciifarm/client/inputhandling.hy +++ b/asciifarm/client/inputhandling.hy @@ -10,7 +10,7 @@ (setv self.connection connection) (setv self.commands None)) - (defn readCommands [self commandsstring] + (defn readCommands [self commandsstring] (do (setv self.commands (dict-comp (str key) @@ -20,7 +20,8 @@ (fn [handler] (fn [] ~value)))) self) - [[key value] (.items (read-str commandsstring))]))) + [[key value] (.items (read-str commandsstring))])) + ((.get self.commands "init" (fn []))))) (defn runCommand [self commandstring] (try |
