Previous: Chat printers, Up: Hacking and extending

16.8 Stanza chains

If you really need to get under the skin of jabber.el, you can add functions to the lists jabber-message-chain, jabber-iq-chain and jabber-presence-chain. The functions in these lists will be called in order when an XML stanza of the corresponding type arrives, with the connection object and the entire XML stanza passed as arguments. Earlier functions can modify the stanza to change the behaviour of downstream functions, but remember: with great power comes great responsibility.