Node:Hooks, Next:Debug options, Previous:Customizing alerts, Up:Customization
jabber.el provides various hooks that you can use for whatever purpose.
jabber-post-connect-hook
jabber-send-default-presence
(see Presence).
jabber-lost-connection-hook
jabber-pre-disconnect-hook
*jabber-authenticated*
if you want to send a stanza.
jabber-post-disconnect-hook
jabber-lost-connection-hook
.