diff options
| author | John Wiegley <johnw@newartisans.com> | 2002-04-25 20:33:28 +0000 |
|---|---|---|
| committer | John Wiegley <johnw@newartisans.com> | 2002-04-25 20:33:28 +0000 |
| commit | 58d327f19e55a7c583c7d4a912300b31edcd951a (patch) | |
| tree | 53d2fe0f55688f48ed7da18af8cdb2b41a4d8835 /chess-ics.el | |
| parent | 4f0a1095c645e63da50f97379495f06e892db9c1 (diff) | |
*** no comment ***
Diffstat (limited to 'chess-ics.el')
| -rw-r--r-- | chess-ics.el | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/chess-ics.el b/chess-ics.el index 58517a4..6f41537 100644 --- a/chess-ics.el +++ b/chess-ics.el @@ -49,13 +49,7 @@ The format of each entry is: (cons "[Pp]assword:" (function (lambda () - (let ((pass (or chess-ics-password - (read-passwd "Password: ")))) - (if (file-readable-p pass) - (setq pass (with-temp-buffer - (insert-file-contents pass) - (buffer-string)))) - (chess-engine-send nil (concat pass "\n"))) + (chess-engine-send nil (concat chess-ics-password "\n")) 'once))) (cons "%" (function @@ -284,7 +278,14 @@ who is black." (if (null (nth 2 server)) (setq chess-ics-handle "guest") (setq chess-ics-handle (nth 2 server) - chess-ics-password (nth 3 server))))) + chess-ics-password + (let ((pass (or (nth 3 server) + (read-passwd "Password: ")))) + (if (file-readable-p pass) + (with-temp-buffer + (insert-file-contents pass) + (buffer-string)) + pass)))))) t) ((eq event 'match) |
