Explorar o código

[ledger] message on non found

Innocenty Enikeew %!s(int64=8) %!d(string=hai) anos
pai
achega
d153efdf92
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      plugins/ledger.lisp

+ 3 - 1
plugins/ledger.lisp

@@ -186,7 +186,9 @@
            (len (length entries))
            (count (min len 50)))
       (bot-send-message chat-id
-                        (text-chunks (subseq entries (- len count) len))
+                        (if entries
+                            (text-chunks (subseq entries (- len count) len))
+                            "Не нашлось")
                         :parse-mode "markdown"))))
 
 (def-message-cmd-handler handler-journal (:journal)