~technomancy/pengbot

dafb9fa7aeadd562f6b5241658f8f23ff1b2ad54 — Phil Hagelberg 4 months ago cdd78ca main
Strip trailing ? on whats command.
1 files changed, 1 insertions(+), 1 deletions(-)

M handlers.fnl
M handlers.fnl => handlers.fnl +1 -1
@@ 78,7 78,7 @@
        (let [(term data) (args:match "^(%S+) (.*)")]
          (set-term caps.io term data)))
 ;; for when you want get, but without the prefix
 :whats (fn [_ term {: caps}] (get-term caps.io term))
 :whats (fn [_ term {: caps}] (get-term caps.io (term:gsub "%?+$" "")))
 :forget (fn [_ term {: caps}]
           (assert (caps.os.remove (.. "data/" (assert (ok-term? term) "bad!"))))
           "OK, forgot it.")