diff options
| author | Michael Olson | 2007-11-29 22:36:38 +0000 |
|---|---|---|
| committer | Michael Olson | 2007-11-29 22:36:38 +0000 |
| commit | 2131c501dd40482c6c30b538eecfc7e9ab4e58d2 (patch) | |
| tree | 861f8992c4737997bd3470d7c7748fe369798d15 /lisp/erc/erc-netsplit.el | |
| parent | b510360c6bf66da86512b837c9533cbd24b776fe (diff) | |
| download | emacs-2131c501dd40482c6c30b538eecfc7e9ab4e58d2.tar.gz emacs-2131c501dd40482c6c30b538eecfc7e9ab4e58d2.zip | |
Sync from upstream ERC
- Parse 307 (nick has identified) responses.
- Only activate some things if the connection has been established.
Diffstat (limited to 'lisp/erc/erc-netsplit.el')
| -rw-r--r-- | lisp/erc/erc-netsplit.el | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/lisp/erc/erc-netsplit.el b/lisp/erc/erc-netsplit.el index 83bc0dffc0c..b20b7ad738b 100644 --- a/lisp/erc/erc-netsplit.el +++ b/lisp/erc/erc-netsplit.el | |||
| @@ -173,13 +173,14 @@ join from that split has been detected or not.") | |||
| 173 | 173 | ||
| 174 | (defun erc-netsplit-timer (now) | 174 | (defun erc-netsplit-timer (now) |
| 175 | "Clean cruft from `erc-netsplit-list' older than 10 minutes." | 175 | "Clean cruft from `erc-netsplit-list' older than 10 minutes." |
| 176 | (dolist (elt erc-netsplit-list) | 176 | (when erc-server-connected |
| 177 | (when (> (erc-time-diff (cadr elt) now) 600) | 177 | (dolist (elt erc-netsplit-list) |
| 178 | (when erc-netsplit-debug | 178 | (when (> (erc-time-diff (cadr elt) now) 600) |
| 179 | (erc-display-message | 179 | (when erc-netsplit-debug |
| 180 | nil 'notice (current-buffer) | 180 | (erc-display-message |
| 181 | (concat "Netsplit: Removing " (car elt)))) | 181 | nil 'notice (current-buffer) |
| 182 | (setq erc-netsplit-list (delq elt erc-netsplit-list))))) | 182 | (concat "Netsplit: Removing " (car elt)))) |
| 183 | (setq erc-netsplit-list (delq elt erc-netsplit-list)))))) | ||
| 183 | 184 | ||
| 184 | ;;;###autoload | 185 | ;;;###autoload |
| 185 | (defun erc-cmd-WHOLEFT () | 186 | (defun erc-cmd-WHOLEFT () |