Software /
code /
prosody
Comparison
plugins/mod_ping.lua @ 12977:74b9e05af71e
plugins: Prefix module imports with prosody namespace
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Fri, 24 Mar 2023 13:15:28 +0100 |
parent | 10654:a2bd6e85a457 |
comparison
equal
deleted
inserted
replaced
12976:a187600ec7d6 | 12977:74b9e05af71e |
---|---|
4 -- | 4 -- |
5 -- This project is MIT/X11 licensed. Please see the | 5 -- This project is MIT/X11 licensed. Please see the |
6 -- COPYING file in the source package for more information. | 6 -- COPYING file in the source package for more information. |
7 -- | 7 -- |
8 | 8 |
9 local st = require "util.stanza"; | 9 local st = require "prosody.util.stanza"; |
10 | 10 |
11 module:add_feature("urn:xmpp:ping"); | 11 module:add_feature("urn:xmpp:ping"); |
12 | 12 |
13 local function ping_handler(event) | 13 local function ping_handler(event) |
14 event.origin.send(st.reply(event.stanza)); | 14 event.origin.send(st.reply(event.stanza)); |