diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-11-16 05:02:15 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-11-16 05:02:15 +0500 |
commit | df3f2d47f014e15aaaec91333762b50dc1c680f6 (patch) | |
tree | 2c3289c02751907a1a9f5829b1d3ba54013a3781 /core/servermanager.lua | |
parent | 04bebd603fb166800516fd8fabda240f2d4ad223 (diff) | |
download | prosody-df3f2d47f014e15aaaec91333762b50dc1c680f6.tar.gz prosody-df3f2d47f014e15aaaec91333762b50dc1c680f6.zip |
Fixed servermanager to use session.send for sending stanzas
Diffstat (limited to 'core/servermanager.lua')
-rw-r--r-- | core/servermanager.lua | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/servermanager.lua b/core/servermanager.lua index aba3f5d5..99eb4c23 100644 --- a/core/servermanager.lua +++ b/core/servermanager.lua @@ -1,6 +1,5 @@ local st = require "util.stanza"; -local send = require "core.sessionmanager".send_to_session; local xmlns_stanzas ='urn:ietf:params:xml:ns:xmpp-stanzas'; require "modulemanager" @@ -11,10 +10,10 @@ function handle_stanza(origin, stanza) if not modulemanager.handle_stanza(origin, stanza) then if stanza.name == "iq" then if stanza.attr.type ~= "result" and stanza.attr.type ~= "error" then - send(origin, st.error_reply(stanza, "cancel", "service-unavailable")); + origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); end elseif stanza.name == "message" then - send(origin, st.error_reply(stanza, "cancel", "service-unavailable")); + origin.send(st.error_reply(stanza, "cancel", "service-unavailable")); elseif stanza.name ~= "presence" then error("Unknown stanza"); end |