Software /
code /
prosody
Diff
plugins/mod_saslauth.lua @ 313:a273f3a7b8f8
Fixed mod_saslauth to use session.send for sending stanzas
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 16 Nov 2008 04:47:34 +0500 |
parent | 304:7b28fa8bbfe5 |
child | 357:17bcecb06420 |
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua Sun Nov 16 04:45:31 2008 +0500 +++ b/plugins/mod_saslauth.lua Sun Nov 16 04:47:34 2008 +0500 @@ -1,6 +1,5 @@ local st = require "util.stanza"; -local send = require "core.sessionmanager".send_to_session; local sm_bind_resource = require "core.sessionmanager".bind_resource; local jid local base64 = require "base64" @@ -125,5 +124,5 @@ add_iq_handler("c2s", "urn:ietf:params:xml:ns:xmpp-session", function (session, stanza) log("debug", "Client tried to bind to a resource"); - send(session, st.reply(stanza)); + session.send(st.reply(stanza)); end);