ソースを参照

fix preprocess-input

Innokenty Enikeev 9 年 前
コミット
8a98c32ee3
1 ファイル変更2 行追加1 行削除
  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)))