diff options
author | Kim Alvefur <zash@zash.se> | 2019-11-07 19:23:42 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-11-07 19:23:42 +0100 |
commit | c63beda273f7180dcf4cff13db3921840818d2c6 (patch) | |
tree | 0dcc19475dbd6caf5a83a3e37e54e502bf5f6dcf /plugins | |
parent | 5164f0f45c0a4e68aea9887ee13e2900b19cdf57 (diff) | |
download | prosody-c63beda273f7180dcf4cff13db3921840818d2c6.tar.gz prosody-c63beda273f7180dcf4cff13db3921840818d2c6.zip |
mod_ping: Remove ad-hoc command
17:27:40 <Ge0rG> Zash: the Ping thing is absolutely worthless
17:27:55 <Zash> The command provided by mod_ping?
17:27:59 <pep.> To own server?
17:28:14 <Ge0rG> the Ping command in mod_admin_web, whatever it maps to
17:28:29 <Ge0rG> > Pong
> 2019-11-07T16:28:16Z
What am I supposed to do with that result?
17:28:29 <Zash> Yeah, mod_ping provides that
17:28:41 <Ge0rG> Is it a ping to my own server? Where's the RTT?
17:28:48 <Zash> Dunno if it's useful for more than verifying that the adhoc command system works
17:29:02 <Ge0rG> (it lags, but there is no indication of how much)
17:29:14 <Zash> It can't really test that itself
17:29:52 <Zash> Anyone opposed to deleting it?
17:30:42 <Zash> Half the module
17:42:47 <MattJ> Zash, I'm fine with removing it
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_ping.lua | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/plugins/mod_ping.lua b/plugins/mod_ping.lua index 5fff58d1..df24c495 100644 --- a/plugins/mod_ping.lua +++ b/plugins/mod_ping.lua @@ -16,18 +16,3 @@ end module:hook("iq-get/bare/urn:xmpp:ping:ping", ping_handler); module:hook("iq-get/host/urn:xmpp:ping:ping", ping_handler); - --- Ad-hoc command - -local datetime = require "util.datetime".datetime; - -function ping_command_handler (self, data, state) -- luacheck: ignore 212 - local now = datetime(); - return { info = "Pong\n"..now, status = "completed" }; -end - -module:depends "adhoc"; -local adhoc_new = module:require "adhoc".new; -local descriptor = adhoc_new("Ping", "ping", ping_command_handler); -module:provides("adhoc", descriptor); - |