;; You should have received a copy of the GNU General Public License
;; along with GNU Emacs; see the file COPYING. If not, write to the
-;; Free Software Foundation, Inc., 59 Temple Place - Suite 330,
-;; Boston, MA 02111-1307, USA.
+;; Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+;; Boston, MA 02110-1301, USA.
;;; Commentary:
(defvar riece-doctor-patients nil)
-(defvar riece-doctor-enabled nil)
-
(defconst riece-doctor-description
"Pretend to be a psychotherapist.")
(riece-send-string (format "NOTICE %s :%s\r\n" target string)))
(defun riece-doctor-after-privmsg-hook (prefix string)
- (if riece-doctor-enabled
+ (if (get 'riece-doctor 'riece-addon-enabled)
(let* ((user (riece-prefix-nickname prefix))
(parameters (riece-split-parameters string))
(targets (split-string (car parameters) ","))
(defun riece-doctor-uninstall ()
(remove-hook 'riece-after-privmsg-hook 'riece-doctor-after-privmsg-hook))
-(defun riece-doctor-enable ()
- (setq riece-doctor-enabled t))
-
-(defun riece-doctor-disable ()
- (setq riece-doctor-enabled nil))
-
(provide 'riece-doctor)
;;; riece-doctor.el ends here