Software /
code /
prosody
Changeset
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 |
parents | 312:63e523629389 |
children | 314:851f271d25b0 |
files | plugins/mod_saslauth.lua |
diffstat | 1 files changed, 1 insertions(+), 2 deletions(-) [+] |
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);