koldfront

Add comment

To avoid spam many websites make you fill out a CAPTCHA, or log in via an account at a corporation such as Twitter, Facebook, Google or even Microsoft GitHub.

I have chosen to use a more old school method of spam prevention.

To post a comment here, you need to:

ยน Such as Thunderbird, Pan, slrn or Gnus (part of Emacs).

Timestamping presence notifications from jabber.el #emacs

๐Ÿ•๏ธŽ - 2015-08-05

Sometimes it is nice to know when a presence change alert from jabber.el happened, "X is now Online", "X is now Offline" - sure, but when was that?

defadvice to the rescue:

    (defadvice jabber-presence-default-message (after add-timestamp-to-message last activate)
      (when ad-return-value
          (setq ad-return-value (concat "[" (current-time-string) "] " ad-return-value))))

Now the *Messages* contains information like: "[Wed Aug 5 14:25:02 2015] X is now Offline" - nice!