Node:Message alerts, Next:, Previous:Presence alerts, Up:Customizing alerts



Message alerts

Set jabber-alerts-message-function to your desired function.1 This function should look like:

(function from buffer text)

from is the JID symbol (see Roster structure), buffer is the buffer where the message is displayed, and text is the text of the message.

The default function, jabber-message-default-message, returns "Message from person", where person is the name of the person if specified in the roster, otherwise the JID.

All message alert hooks take the same arguments plus the additional proposed-alert, which is the result of the specified message function.


Footnotes

  1. Logically it should be jabber-alerts-message-message-function, but that would be really ugly.