diff options
| author | Deniz Dogan | 2011-02-07 01:12:17 +0100 |
|---|---|---|
| committer | Deniz Dogan | 2011-02-07 01:12:17 +0100 |
| commit | c5aff743c3963a8fdaab628d2b695df50432e0de (patch) | |
| tree | c599208371598e26813110b571794f1f92519fe4 | |
| parent | 03925868edfb3f284b32d16af088a21301702123 (diff) | |
| download | emacs-c5aff743c3963a8fdaab628d2b695df50432e0de.tar.gz emacs-c5aff743c3963a8fdaab628d2b695df50432e0de.zip | |
* lisp/net/rcirc.el (rcirc-handler-317): New function. (Bug#6507)
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/net/rcirc.el | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 69ed03e7cba..3d20d7001d6 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2011-02-07 Deniz Dogan <deniz.a.m.dogan@gmail.com> | ||
| 2 | |||
| 3 | * net/rcirc.el (rcirc-handler-317): New function (Bug#6507). | ||
| 4 | |||
| 1 | 2011-02-06 Jay Belanger <jay.p.belanger@gmail.com> | 5 | 2011-02-06 Jay Belanger <jay.p.belanger@gmail.com> |
| 2 | 6 | ||
| 3 | * calc/calc.el (calc-logunits-field-reference) Renamed from | 7 | * calc/calc.el (calc-logunits-field-reference) Renamed from |
diff --git a/lisp/net/rcirc.el b/lisp/net/rcirc.el index 87db130f1ea..21934ce8b01 100644 --- a/lisp/net/rcirc.el +++ b/lisp/net/rcirc.el | |||
| @@ -2592,6 +2592,20 @@ keywords when no KEYWORD is given." | |||
| 2592 | (setq rcirc-nick-away-alist (cons (cons nick away-message) | 2592 | (setq rcirc-nick-away-alist (cons (cons nick away-message) |
| 2593 | rcirc-nick-away-alist)))))) | 2593 | rcirc-nick-away-alist)))))) |
| 2594 | 2594 | ||
| 2595 | (defun rcirc-handler-317 (process sender args text) | ||
| 2596 | "RPL_WHOISIDLE" | ||
| 2597 | (let* ((nick (nth 1 args)) | ||
| 2598 | (idle-secs (string-to-number (nth 2 args))) | ||
| 2599 | (idle-string | ||
| 2600 | (if (< idle-secs most-positive-fixnum) | ||
| 2601 | (format-seconds "%yy %dd %hh %mm %z%ss" idle-secs) | ||
| 2602 | "a very long time")) | ||
| 2603 | (signon-time (seconds-to-time (string-to-number (nth 3 args)))) | ||
| 2604 | (signon-string (format-time-string "%c" signon-time)) | ||
| 2605 | (message (format "%s idle for %s, signed on %s" | ||
| 2606 | nick idle-string signon-string))) | ||
| 2607 | (rcirc-print process sender "317" nil message t))) | ||
| 2608 | |||
| 2595 | (defun rcirc-handler-332 (process sender args text) | 2609 | (defun rcirc-handler-332 (process sender args text) |
| 2596 | "RPL_TOPIC" | 2610 | "RPL_TOPIC" |
| 2597 | (let ((buffer (or (rcirc-get-buffer process (cadr args)) | 2611 | (let ((buffer (or (rcirc-get-buffer process (cadr args)) |