aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDeniz Dogan2011-02-09 02:22:26 +0100
committerDeniz Dogan2011-02-09 02:22:26 +0100
commit4d04fdc950fa181c47a03ec8ce63f57f4f45a4ae (patch)
tree19261fea0fd9b3a9e84a4baa3b1bb03245d39f3d
parentf9f2e7f5407ab70e295562652dd080b86fb88292 (diff)
downloademacs-4d04fdc950fa181c47a03ec8ce63f57f4f45a4ae.tar.gz
emacs-4d04fdc950fa181c47a03ec8ce63f57f4f45a4ae.zip
* lisp/net/rcirc.el (rcirc-ctcp-sender-PING): Simplifying.
-rw-r--r--lisp/ChangeLog2
-rw-r--r--lisp/net/rcirc.el2
2 files changed, 3 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 4e0dc57c1b7..dd3bb3d475c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,7 @@
12011-02-09 Deniz Dogan <deniz.a.m.dogan@gmail.com> 12011-02-09 Deniz Dogan <deniz.a.m.dogan@gmail.com>
2 2
3 * net/rcirc.el (rcirc-ctcp-sender-PING): Simplifying.
4
3 * net/rcirc.el (rcirc-cmd-ctcp): Use dedicated function when 5 * net/rcirc.el (rcirc-cmd-ctcp): Use dedicated function when
4 available. 6 available.
5 (rcirc-ctcp-sender-PING): New function. 7 (rcirc-ctcp-sender-PING): New function.
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el
index 246f6335134..62fa7eb0feb 100644
--- a/lisp/net/rcirc.el
+++ b/lisp/net/rcirc.el
@@ -2198,7 +2198,7 @@ With a prefix arg, prompt for new topic."
2198 2198
2199(defun rcirc-ctcp-sender-PING (process target request) 2199(defun rcirc-ctcp-sender-PING (process target request)
2200 "Send a CTCP PING message to TARGET." 2200 "Send a CTCP PING message to TARGET."
2201 (let ((timestamp (car (split-string (number-to-string (float-time)) "\\.")))) 2201 (let ((timestamp (format "%.0f" (float-time))))
2202 (rcirc-send-string process 2202 (rcirc-send-string process
2203 (format "PRIVMSG %s :\C-aPING %s\C-a" target timestamp)))) 2203 (format "PRIVMSG %s :\C-aPING %s\C-a" target timestamp))))
2204 2204