From: Magnus H. <leg...@us...> - 2010-09-03 21:31:25
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "emacs-jabber". The branch, master has been updated via c11374cb99bbf88c3019778bb7a41709e2901998 (commit) from ccbd3855b86efecaee4a83fec61108b04dbe14dd (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit c11374cb99bbf88c3019778bb7a41709e2901998 Author: Magnus Henoch <leg...@us...> Date: Fri Sep 3 22:31:18 2010 +0100 XEP-0012 (jabber:iq:last) response must be an integer. Fixes 3058675. * jabber-time.el (jabber-return-last): Round response to iq:last request down. diff --git a/jabber-time.el b/jabber-time.el index 0455001..bd425f0 100644 --- a/jabber-time.el +++ b/jabber-time.el @@ -187,7 +187,9 @@ determined from the incoming packet passed in XML-DATA." (id (jabber-xml-get-attribute xml-data 'id))) (jabber-send-iq jc to "result" `(time ((xmlns . "jabber:iq:last") - (seconds . ,(int-to-string (jabber-autoaway-get-idle-time))))) + ;; XEP-0012 specifies that this is an integer. + (seconds . ,(number-to-string + (floor (jabber-autoaway-get-idle-time)))))) nil nil nil nil id))) ----------------------------------------------------------------------- Summary of changes: jabber-time.el | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) hooks/post-receive -- emacs-jabber |