Software /
code /
prosody
File
util/mod_ping.lua @ 429:b1d86f89fa27
Added options to limit the number of resources and for handling of resource conflicts
- core.max_resources: defaults to 10
- core.conflict_resolve: can be "random", "increment", "kick_new" and "kick_old" (default)
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 27 Nov 2008 02:48:08 +0500 |
parent | 425:f3b65866192e |
line wrap: on
line source
local st = require "util.stanza"; require "core.discomanager".set("ping", "urn:xmpp:ping"); add_iq_handler({"c2s", "s2sin"}, "urn:xmpp:ping", function(session, stanza) if stanza.attr.type == "get" then session.send(st.reply(stanza)); end end);