diff options
Diffstat (limited to 'src/config.lisp')
| -rw-r--r-- | src/config.lisp | 5 |
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'." |