diff lisp/erc/erc-autoaway.el @ 86836:11b4896b439a

Sync from upstream ERC - Parse 307 (nick has identified) responses. - Only activate some things if the connection has been established.
author Michael Olson <mwolson@gnu.org>
date Thu, 29 Nov 2007 22:36:38 +0000
parents 85d67fae9a94
children 107ccd98fa12
line wrap: on
line diff
--- a/lisp/erc/erc-autoaway.el	Thu Nov 29 21:57:25 2007 +0000
+++ b/lisp/erc/erc-autoaway.el	Thu Nov 29 22:36:38 2007 +0000
@@ -248,7 +248,8 @@
   ;; A test for (erc-server-process-alive) is not necessary, because
   ;; this function is called from `erc-timer-hook', which is called
   ;; whenever the server sends something to the client.
-  (when (and erc-auto-set-away
+  (when (and erc-server-connected
+	     erc-auto-set-away
 	     (not erc-autoaway-caused-away)
 	     (erc-autoaway-some-open-server-buffer))
     (let ((idle-time (erc-time-diff erc-autoaway-last-sent-time