diff options
| author | Leo Liu | 2012-04-21 22:12:27 +0800 |
|---|---|---|
| committer | Leo Liu | 2012-04-21 22:12:27 +0800 |
| commit | d64a438f6a88f5db66ddf21ff97f9e06c00e33b0 (patch) | |
| tree | 58f636c074499ce58adda86a1cb46b117818dc55 /lisp/net | |
| parent | b91b7e4d21bb1b675aeb678077901b758363db41 (diff) | |
| download | emacs-d64a438f6a88f5db66ddf21ff97f9e06c00e33b0.tar.gz emacs-d64a438f6a88f5db66ddf21ff97f9e06c00e33b0.zip | |
* lisp/net/rcirc.el (rcirc): Avoid error when process-contact returns
t.
Diffstat (limited to 'lisp/net')
| -rw-r--r-- | lisp/net/rcirc.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 485af6e1b5e..1898b3d074f 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -479,7 +479,8 @@ If ARG is non-nil, instead prompt for connection parameters." | |||
| 479 | rcirc-default-full-name)) | 479 | rcirc-default-full-name)) |
| 480 | (channels (plist-get (cdr c) :channels)) | 480 | (channels (plist-get (cdr c) :channels)) |
| 481 | (password (plist-get (cdr c) :password)) | 481 | (password (plist-get (cdr c) :password)) |
| 482 | (encryption (plist-get (cdr c) :encryption))) | 482 | (encryption (plist-get (cdr c) :encryption)) |
| 483 | contact) | ||
| 483 | (when server | 484 | (when server |
| 484 | (let (connected) | 485 | (let (connected) |
| 485 | (dolist (p (rcirc-process-list)) | 486 | (dolist (p (rcirc-process-list)) |
| @@ -491,10 +492,11 @@ If ARG is non-nil, instead prompt for connection parameters." | |||
| 491 | full-name channels password encryption) | 492 | full-name channels password encryption) |
| 492 | (quit (message "Quit connecting to %s" server))) | 493 | (quit (message "Quit connecting to %s" server))) |
| 493 | (with-current-buffer (process-buffer connected) | 494 | (with-current-buffer (process-buffer connected) |
| 494 | (setq connected-servers | 495 | (setq contact (process-contact |
| 495 | (cons (process-contact (get-buffer-process | 496 | (get-buffer-process (current-buffer)) :host)) |
| 496 | (current-buffer)) :host) | 497 | (setq connected-servers |
| 497 | connected-servers)))))))) | 498 | (cons (if (stringp contact) contact server) |
| 499 | connected-servers)))))))) | ||
| 498 | (when connected-servers | 500 | (when connected-servers |
| 499 | (message "Already connected to %s" | 501 | (message "Already connected to %s" |
| 500 | (if (cdr connected-servers) | 502 | (if (cdr connected-servers) |