Moved presence subscription code from stanza_router to presencemanager

Merge with waqas

Fix for putting TLS in stream:features for connections already using TLS. Thanks to albert for spotting.

Fix logging in some cases for client disconnects

Removed unused function send_to_session from sessionmanager (send_to_session replaced by session.send)

Fixed mod_tls to use session.send for sending stanzas

Fixed servermanager to use session.send for sending stanzas

Removed useless [[local send = require "core.sessionmanager".send_to_session]] from mod_uptime and mod_version

Fixed mod_saslauth to use session.send for sending stanzas

Fixed sessionmanager to not send session in place of stream features...

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

mercurial