2011-02-09 Deniz Dogan <deniz.a.m.dogan@gmail.com>
+ * net/rcirc.el (rcirc-ctcp-sender-PING): Simplifying.
+
* net/rcirc.el (rcirc-cmd-ctcp): Use dedicated function when
available.
(rcirc-ctcp-sender-PING): New function.
(defun rcirc-ctcp-sender-PING (process target request)
"Send a CTCP PING message to TARGET."
- (let ((timestamp (car (split-string (number-to-string (float-time)) "\\."))))
+ (let ((timestamp (format "%.0f" (float-time))))
(rcirc-send-string process
(format "PRIVMSG %s :\C-aPING %s\C-a" target timestamp))))