Explorar o código

fix preprocess-input

Innokenty Enikeev %!s(int64=9) %!d(string=hai) anos
pai
achega
8a98c32ee3
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      utils.lisp

+ 2 - 1
utils.lisp

@@ -91,7 +91,8 @@ is replaced with replacement."
 
 (defun preprocess-input (text)
   (when text
-    (let* ((first-space (position #\Space text))
+    (let* ((text (subseq text (if (equal (char text 0) #\/) 1 0)))
+           (first-space (position #\Space text))
            (first-word (subseq text 0 first-space)))
       (if (equal first-word *bot-name*)
           (preprocess-input (subseq text (1+ first-space)))