mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-01 11:14:55 +00:00
* lisp/net/rcirc.el (rcirc-ctcp-sender-PING): Simplifying.
This commit is contained in:
parent
f9f2e7f540
commit
4d04fdc950
@ -1,5 +1,7 @@
|
||||
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.
|
||||
|
@ -2198,7 +2198,7 @@ With a prefix arg, prompt for new topic."
|
||||
|
||||
(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))))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user