]> git.eshelyaron.com Git - emacs.git/commitdiff
(rcirc-keepalive, rcirc-handler-ctcp-KEEPALIVE):
authorGlenn Morris <rgm@gnu.org>
Wed, 2 Sep 2009 03:20:48 +0000 (03:20 +0000)
committerGlenn Morris <rgm@gnu.org>
Wed, 2 Sep 2009 03:20:48 +0000 (03:20 +0000)
Use float-time rather than time-to-seconds.

lisp/net/rcirc.el

index 095ebe7245ff54b16f8b1e75757ca81651e45bee..ab9a0ba8b7dfe60fad0f74e560390cc730232fac 100644 (file)
@@ -538,8 +538,10 @@ last ping."
                  (rcirc-send-string process
                                     (format "PRIVMSG %s :\C-aKEEPALIVE %f\C-a"
                                             rcirc-nick
-                                            (time-to-seconds
-                                             (current-time)))))))
+                                             (if (featurep 'xemacs)
+                                                 (time-to-seconds
+                                                  (current-time))
+                                               (float-time)))))))
             (rcirc-process-list))
     ;; no processes, clean up timer
     (cancel-timer rcirc-keepalive-timer)
@@ -547,7 +549,10 @@ last ping."
 
 (defun rcirc-handler-ctcp-KEEPALIVE (process target sender message)
   (with-rcirc-process-buffer process
-    (setq header-line-format (format "%f" (- (time-to-seconds (current-time))
+    (setq header-line-format (format "%f" (- (if (featurep 'xemacs)
+                                                 (time-to-seconds
+                                                  (current-time))
+                                               (float-time))
                                             (string-to-number message))))))
 
 (defvar rcirc-debug-buffer " *rcirc debug*")