* riece-hangman.el (riece-hangman-after-privmsg-hook): Display answer.
authorueno <ueno>
Mon, 31 May 2004 06:18:07 +0000 (06:18 +0000)
committerueno <ueno>
Mon, 31 May 2004 06:18:07 +0000 (06:18 +0000)
(riece-hangman-enable): Initialize random seed.

lisp/ChangeLog
lisp/riece-hangman.el

index 3e28dc3..b6239c0 100644 (file)
@@ -1,3 +1,8 @@
+2004-05-31  Daiki Ueno  <ueno@unixuser.org>
+
+       * riece-hangman.el (riece-hangman-after-privmsg-hook): Display answer.
+       (riece-hangman-enable): Initialize random seed.
+
 2004-05-29  Daiki Ueno  <ueno@unixuser.org>
 
        * Riece: Version 1.0.0 released.
index 54f6349..0f79838 100644 (file)
@@ -217,7 +217,8 @@ The wordlist is read from `riece-hangman-words-file'."
                          (riece-hangman-reply-with-context user (car targets)
                                                            (cdr pointer))
                        (riece-hangman-reply (car targets)
-                                            (format "%s: You got it!" user))
+                                            (format "%s: You got it! (%s)"
+                                                    user word))
                        (setq riece-hangman-player-context-alist
                              (delq
                               pointer
@@ -227,6 +228,7 @@ The wordlist is read from `riece-hangman-words-file'."
   (add-hook 'riece-after-privmsg-hook 'riece-hangman-after-privmsg-hook))
 
 (defun riece-hangman-enable ()
+  (random t)
   (setq riece-hangman-enabled t))
 
 (defun riece-hangman-disable ()