aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/net/rcirc.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 095ebe7245f..ab9a0ba8b7d 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -538,8 +538,10 @@ last ping."
538 (rcirc-send-string process 538 (rcirc-send-string process
539 (format "PRIVMSG %s :\C-aKEEPALIVE %f\C-a" 539 (format "PRIVMSG %s :\C-aKEEPALIVE %f\C-a"
540 rcirc-nick 540 rcirc-nick
541 (time-to-seconds 541 (if (featurep 'xemacs)
542 (current-time))))))) 542 (time-to-seconds
543 (current-time))
544 (float-time)))))))
543 (rcirc-process-list)) 545 (rcirc-process-list))
544 ;; no processes, clean up timer 546 ;; no processes, clean up timer
545 (cancel-timer rcirc-keepalive-timer) 547 (cancel-timer rcirc-keepalive-timer)
@@ -547,7 +549,10 @@ last ping."
547 549
548(defun rcirc-handler-ctcp-KEEPALIVE (process target sender message) 550(defun rcirc-handler-ctcp-KEEPALIVE (process target sender message)
549 (with-rcirc-process-buffer process 551 (with-rcirc-process-buffer process
550 (setq header-line-format (format "%f" (- (time-to-seconds (current-time)) 552 (setq header-line-format (format "%f" (- (if (featurep 'xemacs)
553 (time-to-seconds
554 (current-time))
555 (float-time))
551 (string-to-number message)))))) 556 (string-to-number message))))))
552 557
553(defvar rcirc-debug-buffer " *rcirc debug*") 558(defvar rcirc-debug-buffer " *rcirc debug*")