Fix sending of unavailable presence on disconnect

Don't forget to escape XML in attributes. Thanks to the Postgres Q&A room on conference.jabber.org :)

We have SRV resolving \o/

Small fix for servermanager

Fix to prevent send retry when connection is already closed

*ahem* Yes, move along please... though really, quite a classic. :)

session:disconnect() -> session:close() for consistency with other Lua APIs

Remove useless check for unavailable presence (which never exists)

Quite some changes, to:

s2s sessions can now be disconnected, with or without a stream error. Fixes #8

(0) -300 -100 -10 +10 +100 +300 +1000 +3000 tip

mercurial