Software /
code /
prosody
Comparison
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 |
comparison
equal
deleted
inserted
replaced
312:63e523629389 | 313:a273f3a7b8f8 |
---|---|
1 | 1 |
2 local st = require "util.stanza"; | 2 local st = require "util.stanza"; |
3 local send = require "core.sessionmanager".send_to_session; | |
4 local sm_bind_resource = require "core.sessionmanager".bind_resource; | 3 local sm_bind_resource = require "core.sessionmanager".bind_resource; |
5 local jid | 4 local jid |
6 local base64 = require "base64" | 5 local base64 = require "base64" |
7 | 6 |
8 local usermanager_validate_credentials = require "core.usermanager".validate_credentials; | 7 local usermanager_validate_credentials = require "core.usermanager".validate_credentials; |
123 end); | 122 end); |
124 | 123 |
125 add_iq_handler("c2s", "urn:ietf:params:xml:ns:xmpp-session", | 124 add_iq_handler("c2s", "urn:ietf:params:xml:ns:xmpp-session", |
126 function (session, stanza) | 125 function (session, stanza) |
127 log("debug", "Client tried to bind to a resource"); | 126 log("debug", "Client tried to bind to a resource"); |
128 send(session, st.reply(stanza)); | 127 session.send(st.reply(stanza)); |
129 end); | 128 end); |