projects
/
elisp
/
riece.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
* Makefile.am (EXTRA_DIST): Added riece-cache.el.
[elisp/riece.git]
/
lisp
/
riece-foolproof.el
diff --git
a/lisp/riece-foolproof.el
b/lisp/riece-foolproof.el
index
bc606ea
..
1889987
100644
(file)
--- a/
lisp/riece-foolproof.el
+++ b/
lisp/riece-foolproof.el
@@
-31,8
+31,6
@@
(require 'riece-identity)
(require 'riece-display))
(require 'riece-identity)
(require 'riece-display))
-(defvar riece-foolproof-enabled nil)
-
(defconst riece-foolproof-description
"Prevent miss-operation in the command buffer.")
(defconst riece-foolproof-description
"Prevent miss-operation in the command buffer.")
@@
-42,7
+40,7
@@
identity riece-channel-buffer-alist))))
(defun riece-foolproof-command-send-message-function ()
identity riece-channel-buffer-alist))))
(defun riece-foolproof-command-send-message-function ()
- (when riece-foolproof-enabled
+ (when (get 'riece-foolproof 'riece-addon-enabled)
(unless (or (not riece-channel-buffer-mode)
(riece-foolproof-get-channel-window
riece-current-channel))
(unless (or (not riece-channel-buffer-mode)
(riece-foolproof-get-channel-window
riece-current-channel))
@@
-66,12
+64,6
@@
(remove-hook 'riece-command-send-message-hook
'riece-foolproof-command-send-message-function))
(remove-hook 'riece-command-send-message-hook
'riece-foolproof-command-send-message-function))
-(defun riece-foolproof-enable ()
- (setq riece-foolproof-enabled t))
-
-(defun riece-foolproof-disable ()
- (setq riece-foolproof-enabled nil))
-
(provide 'riece-foolproof)
;;; riece-foolproof.el ends here
(provide 'riece-foolproof)
;;; riece-foolproof.el ends here