Software /
code /
prosody
Changeset
1510:83b2e07e9039
mod_disco: Convert from Windows line endings
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 09 Jul 2009 23:00:32 +0100 (2009-07-09) |
parents | 1509:a2ea99238466 |
children | 1511:f9f8b7184cbe |
files | plugins/mod_disco.lua |
diffstat | 1 files changed, 12 insertions(+), 12 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/mod_disco.lua Thu Jul 09 23:00:01 2009 +0100 +++ b/plugins/mod_disco.lua Thu Jul 09 23:00:32 2009 +0100 @@ -7,15 +7,15 @@ -- - -local discomanager_handle = require "core.discomanager".handle; - -module:add_feature("http://jabber.org/protocol/disco#info"); -module:add_feature("http://jabber.org/protocol/disco#items"); - -module:add_iq_handler({"c2s", "s2sin"}, "http://jabber.org/protocol/disco#info", function (session, stanza) - session.send(discomanager_handle(stanza)); -end); -module:add_iq_handler({"c2s", "s2sin"}, "http://jabber.org/protocol/disco#items", function (session, stanza) - session.send(discomanager_handle(stanza)); -end); + +local discomanager_handle = require "core.discomanager".handle; + +module:add_feature("http://jabber.org/protocol/disco#info"); +module:add_feature("http://jabber.org/protocol/disco#items"); + +module:add_iq_handler({"c2s", "s2sin"}, "http://jabber.org/protocol/disco#info", function (session, stanza) + session.send(discomanager_handle(stanza)); +end); +module:add_iq_handler({"c2s", "s2sin"}, "http://jabber.org/protocol/disco#items", function (session, stanza) + session.send(discomanager_handle(stanza)); +end);