Include the message sender in desktop notification
authorSteve Youngs <steve@sxemacs.org>
Thu, 17 Apr 2014 06:10:23 +0000 (15:10 +0900)
committerDaiki Ueno <ueno@gnu.org>
Thu, 17 Apr 2014 06:11:50 +0000 (15:11 +0900)
* lisp/riece-desktop-notify.el
(riece-desktop-notify-title-function): Put the message sender's
nick in the title.

lisp/riece-desktop-notify.el

index c4fabd4..a696cae 100644 (file)
   :group 'riece)
 
 (defcustom riece-desktop-notify-title-function
-  '(lambda (message)
-     (riece-identity-prefix (riece-message-target message)))
+  #'(lambda (message)
+      (format "%s said in %s..."
+             (riece-identity-prefix (riece-message-speaker message))
+             (riece-identity-prefix (riece-message-target message))))
   "*The function which make title.
 This function must have only one message object as argument."
   :type 'function