summaryrefslogtreecommitdiff
path: root/chess-module.el
diff options
context:
space:
mode:
Diffstat (limited to 'chess-module.el')
-rw-r--r--chess-module.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/chess-module.el b/chess-module.el
index 9494af9..59f51e6 100644
--- a/chess-module.el
+++ b/chess-module.el
@@ -26,9 +26,9 @@
(defun chess-module-create (derived game &optional buffer-name
&rest ctor-args)
(let* ((name (symbol-name derived))
- (handler (intern-soft (concat name "-handler")))
- buffer)
- (unless handler
+ handler buffer)
+ (unless (and (require derived nil t)
+ (setq handler (intern-soft (concat name "-handler"))))
(chess-error 'no-such-module name))
(with-current-buffer (generate-new-buffer (or buffer-name
(format " *%s*" name)))