aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-11-16 04:47:34 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-11-16 04:47:34 +0500
commit66546f8ea8d0171b5430396da29dad4a365c0e41 (patch)
tree0114b96295c7e685fc938b1014b7e71c0d271292
parent97bf43fe7a7ee948a11fe1fd7960b4a451526f7b (diff)
downloadprosody-66546f8ea8d0171b5430396da29dad4a365c0e41.tar.gz
prosody-66546f8ea8d0171b5430396da29dad4a365c0e41.zip
Fixed mod_saslauth to use session.send for sending stanzas
-rw-r--r--plugins/mod_saslauth.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_saslauth.lua b/plugins/mod_saslauth.lua
index 7fe84304..6ceb0be3 100644
--- a/plugins/mod_saslauth.lua
+++ b/plugins/mod_saslauth.lua
@@ -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-bind",
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);