projects
/
riece
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add the following comment to add-on modules.
[riece]
/
lisp
/
riece-doctor.el
diff --git
a/lisp/riece-doctor.el
b/lisp/riece-doctor.el
index
a7fbdd7
..
3239f0b
100644
(file)
--- a/
lisp/riece-doctor.el
+++ b/
lisp/riece-doctor.el
@@
-1,4
+1,4
@@
-;;; riece-doctor.el ---
"become a psychotherapist" add-on
+;;; riece-doctor.el ---
pretend to be a psychotherapist
;; Copyright (C) 1998-2003 Daiki Ueno
;; Author: Daiki Ueno <ueno@unixuser.org>
;; Copyright (C) 1998-2003 Daiki Ueno
;; Author: Daiki Ueno <ueno@unixuser.org>
@@
-23,10
+23,7
@@
;;; Commentary:
;;; Commentary:
-;; This add-on allows you to become a psychotherapist.
-
-;; To use, add the following line to your ~/.riece/init.el:
-;; (add-to-list 'riece-addons 'riece-doctor)
+;; NOTE: This is an add-on module for Riece.
;;; Code:
;;; Code:
@@
-36,16
+33,16
@@
(require 'riece-server)
(defgroup riece-doctor nil
(require 'riece-server)
(defgroup riece-doctor nil
- "Interface to doctor.el"
+ "Interface to doctor.el
.
"
:prefix "riece-"
:group 'riece)
:prefix "riece-"
:group 'riece)
-(defcustom riece-doctor-hello-regexp "^,
doctor
"
+(defcustom riece-doctor-hello-regexp "^,
doctor$
"
"Pattern of string patients start consultation."
:type 'string
:group 'riece-doctor)
"Pattern of string patients start consultation."
:type 'string
:group 'riece-doctor)
-(defcustom riece-doctor-bye-regexp "^,
bye doctor
"
+(defcustom riece-doctor-bye-regexp "^,
doctor bye$
"
"Pattern of string patients end consultation."
:type 'string
:group 'riece-doctor)
"Pattern of string patients end consultation."
:type 'string
:group 'riece-doctor)
@@
-55,7
+52,7
@@
(defvar riece-doctor-enabled nil)
(defconst riece-doctor-description
(defvar riece-doctor-enabled nil)
(defconst riece-doctor-description
- "
Allow users in channel to talk with the classic pseudo-AI
")
+ "
Pretend to be a psychotherapist.
")
(put 'riece-doctor 'riece-addon-default-disabled t)
(put 'riece-doctor 'riece-addon-default-disabled t)
@@
-93,13
+90,13
@@
(doctor-mode))
(setq riece-doctor-patients (cons user riece-doctor-patients))
(riece-doctor-reply
(doctor-mode))
(setq riece-doctor-patients (cons user riece-doctor-patients))
(riece-doctor-reply
- (car targets)
+ (car targets)
(format
"%s: I am the psychotherapist. \
Please, describe your problems."
user)))
(if (string-match riece-doctor-bye-regexp message)
(format
"%s: I am the psychotherapist. \
Please, describe your problems."
user)))
(if (string-match riece-doctor-bye-regexp message)
- (let ((pointer (riece-identity-member user
+ (let ((pointer (riece-identity-member user
riece-doctor-patients t)))
(when pointer
(kill-buffer (riece-doctor-buffer-name user))
riece-doctor-patients t)))
(when pointer
(kill-buffer (riece-doctor-buffer-name user))