summaryrefslogtreecommitdiff
path: root/src/config.lisp
diff options
context:
space:
mode:
authorGravatar Uko Kokņevičs2025-10-23 08:25:36 +0300
committerGravatar Uko Kokņevičs2025-10-23 08:25:36 +0300
commiteb15884cf9eeeacde93e174db180181498fb2a19 (patch)
treef1f82bea3a2a219d6340fc22416bfad03b3cc652 /src/config.lisp
parentFix lint issues (diff)
downloadukkoclot-eb15884cf9eeeacde93e174db180181498fb2a19.tar.gz
ukkoclot-eb15884cf9eeeacde93e174db180181498fb2a19.tar.xz
ukkoclot-eb15884cf9eeeacde93e174db180181498fb2a19.zip
Use alexandria's make-keyword & symbolicate
Diffstat (limited to 'src/config.lisp')
-rw-r--r--src/config.lisp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/config.lisp b/src/config.lisp
index 1a139c1..85c9662 100644
--- a/src/config.lisp
+++ b/src/config.lisp
@@ -4,6 +4,7 @@
4 (:documentation "Stuff for loading the configuration of the bot") 4 (:documentation "Stuff for loading the configuration of the bot")
5 (:nicknames :conf) 5 (:nicknames :conf)
6 (:use :c2cl :iterate :ukkoclot/src/rw-lock) 6 (:use :c2cl :iterate :ukkoclot/src/rw-lock)
7 (:import-from :alexandria :make-keyword)
7 (:export 8 (:export
8 #:*config* 9 #:*config*
9 #:config 10 #:config
@@ -77,8 +78,8 @@
77 (for slot in (class-direct-slots (class-of config))) 78 (for slot in (class-direct-slots (class-of config)))
78 (let ((name (slot-definition-name slot))) 79 (let ((name (slot-definition-name slot)))
79 (unless (eql name 'lock) 80 (unless (eql name 'lock)
80 (let ((kw-name (intern (symbol-name name) :keyword))) 81 (appending (list (make-keyword name)
81 (appending (list kw-name (slot-value config name))))))))) 82 (slot-value config name))))))))
82 83
83(defun print-default (filename) 84(defun print-default (filename)
84 "Prints the default config to the given `filename'." 85 "Prints the default config to the given `filename'."