summaryrefslogtreecommitdiff
path: root/src/inline-bots.lisp
diff options
context:
space:
mode:
Diffstat (limited to 'src/inline-bots.lisp')
-rw-r--r--src/inline-bots.lisp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/inline-bots.lisp b/src/inline-bots.lisp
index caf210a..94ed478 100644
--- a/src/inline-bots.lisp
+++ b/src/inline-bots.lisp
@@ -17,14 +17,13 @@
17 17
18(defun on-inline-bot (bot msg via) 18(defun on-inline-bot (bot msg via)
19 (let ((ty (db:get-inline-bot-type (bot-db bot) (user-id via)))) 19 (let ((ty (db:get-inline-bot-type (bot-db bot) (user-id via))))
20 (if (eq ty :whitelisted) 20 (or (eql ty :whitelisted)
21 t 21 (prog1 nil
22 (progn
23 (log:info "Deleting an unallowed inline bot message from ~A ~A" 22 (log:info "Deleting an unallowed inline bot message from ~A ~A"
24 (user-username via) 23 (user-username via)
25 (user-id via)) 24 (user-id via))
26 (try-delete-message bot msg) 25 (try-delete-message bot msg)
27 (unless (eq ty :blacklisted) 26 (unless (eql ty :blacklisted)
28 ;; Not explicitly blacklisted, notify dev group 27 ;; Not explicitly blacklisted, notify dev group
29 (let ((whitelist (make-inline-keyboard-button :text "Whitelist" 28 (let ((whitelist (make-inline-keyboard-button :text "Whitelist"
30 :callback-data (format nil "bwl:~A" (user-id via)))) 29 :callback-data (format nil "bwl:~A" (user-id via))))
@@ -38,5 +37,6 @@
38 :parse-mode html 37 :parse-mode html
39 :reply-markup (make-inline-keyboard-markup 38 :reply-markup (make-inline-keyboard-markup
40 :inline-keyboard 39 :inline-keyboard
41 (make-array '(1 2) :initial-contents (list (list whitelist blacklist))))))) 40 (make-array '(1 2)
42 nil)))) 41 :initial-contents
42 (list (list whitelist blacklist)))))))))))