diff -r 1d6e762433fe -r 0acb8d9a3194 modules/doctor.php --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/modules/doctor.php Mon Aug 25 12:34:26 2008 -0400 @@ -0,0 +1,41 @@ +msg(eb_censor_words("{$message['nick']}, thank you for visiting the psychotherapist. Come again soon!"), true); + } + else + { + $doctor[$message['nick']] = new Psychotherapist(); + $chan->msg(eb_censor_words("{$message['nick']}, I am the psychotherapist. Please explain your problems to me. When you are finished talking with me, type !doctor again."), true); + } + return true; + } +} + +function doctor_listen(&$chan, &$message) +{ + global $doctor; + + if ( isset($doctor[$message['nick']]) && $message['message'] != '!doctor' ) + { + $chan->msg(eb_censor_words($doctor[$message['nick']]->listen($message['message']))); + } +} + +function doctor_greet(&$append) +{ + $append .= ' Type !doctor for the psychotherapist.'; +}