Commit graph

24 commits

Author SHA1 Message Date
Kim Alvefur
98922d54b1 plugins: Prefix module imports with prosody namespace 2023-03-24 13:15:28 +01:00
Kim Alvefur
0b3056c448 mod_ping: Fix double response to internal ping
When responding to a ping from elsewhere in the same Prosody the send
function will be host_send from core.hostmanager, which does not return
anything. Tailcalling it therefore lets the iq event fall trough to
handle_unhandled_stanza in core.stanza_router, which responds with an
error. This error also goes into handle_unhandled_stanza which discards
it.

Noticed because I have a module that points out when a stanza error
reply is created without a text argument.
2020-02-21 23:30:47 +01:00
Kim Alvefur
c63beda273 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
2019-11-07 19:23:42 +01:00
Kim Alvefur
9c620291f4 mod_ping, mod_uptime: Use module:provides 2018-10-27 17:36:51 +02:00
Kim Alvefur
fa84e0f50a mod_ping: Fix typo 2018-07-02 23:51:19 +02:00
Kim Alvefur
198d96dcf5 mod_ping: Depend on mod_ahoc 2018-07-02 23:41:47 +02:00
Kim Alvefur
da6459157d mod_ping: Ignore unused arguments [luacheck] 2018-04-06 01:32:28 +02:00
Kim Alvefur
a4f64d4c8b mod_ping: Use type-specific event 2014-02-09 15:09:12 +01:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Waqas Hussain
bd95b3ba7b mod_ping: Use util.datetime to generate timestamp in ad-hoc command response (instead of the current use of os.date, which doesn't take timezone into account). 2011-01-29 04:42:05 +05:00
Florian Zeitz
c6e47138c4 mod_ping: Add ad-hoc command 2010-09-02 21:57:49 +02:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00
Waqas Hussain
5ea99e76f0 mod_ping: Updated to use events (which also fixes a few minor issues). 2009-10-18 18:26:58 +05:00
Matthew Wild
118883d655 Remove version number from copyright headers 2009-07-10 03:11:45 +01:00
Matthew Wild
3bd8271d09 mod_ping: Convert from Windows line endings 2009-07-09 23:01:13 +01:00
Matthew Wild
c80f91dc02 0.3->0.4 2009-03-20 20:16:25 +00:00
Matthew Wild
c5ee166aa9 Update copyright notices for 2009 2009-01-30 17:59:26 +00:00
Matthew Wild
f2d020191f 0.2->0.3 2009-01-30 17:40:25 +00:00
Matthew Wild
bf3b96204d GPL->MIT! 2009-01-30 17:22:56 +00:00
Matthew Wild
d3ad4a5123 0.1 -> 0.2 2008-12-10 15:44:03 +00:00
Waqas Hussain
2d2414f199 Change modules to use the new add_feature module API method.
This also fixes the bug causing disco features being added to every disco reply for every host.
2008-12-04 20:16:30 +05:00
Matthew Wild
0c5cc83112 Insert copyright/license headers 2008-12-03 14:39:07 +00:00
Matthew Wild
a153b3c267 Bumper commit for the new modulemanager API \o/ Updates all the modules, though some more changes may be in store. 2008-11-27 03:12:12 +00:00
Matthew Wild
af27107a9b Yes, we don't put these things in here, we put them in here. 2008-11-26 15:58:04 +00:00
Renamed from util/mod_ping.lua (Browse further)