Commit graph

37 commits

Author SHA1 Message Date
Kim Alvefur
269d40f1ea mod_version: Fix uname result style (thanks riau)
`result[, err]`, not `ok, err|result`, must have confused it with pcall
2024-04-07 18:36:00 +02:00
Kim Alvefur
0987a0113d mod_version: Handle access denied from uname()
Discovered while experimenting with a stricter SystemCallFilter setting
See man:systemd.exec(5)
2024-04-06 14:31:28 +02:00
Kim Alvefur
98922d54b1 plugins: Prefix module imports with prosody namespace 2023-03-24 13:15:28 +01:00
Kim Alvefur
1e4153ffc1 mod_version: Reduce scope of variable
It is only used in this if block anyways
2018-10-06 16:38:05 +02:00
Kim Alvefur
cf64256f73 mod_version: Rename confusingly named variable
Maybe this meant the version of the OS, but it's still confusing.
2018-10-06 16:32:37 +02:00
Kim Alvefur
fde87c2878 mod_version: Make 'origin' variable local for consistency
Many event handlers start with

    local origin, stanza = event.origin, event.stanza;
2018-10-06 16:29:42 +02:00
Kim Alvefur
b2b84b2f72 mod_version: Use text_tag 2018-10-06 16:27:31 +02:00
Kim Alvefur
bce7e2dbb9 mod_version: Remove redundant
What else would @to be in a iq/host event?
2018-08-24 21:04:27 +02:00
Emmanuel Gil Peyrot
0207fe0e1d mod_version: Simplify iq handling by hooking on iq-get/ instead of iq/. 2018-08-24 20:35:33 +02:00
Kim Alvefur
c3d7d52f0d plugins/various: Use type-specific config API 2017-03-16 20:46:06 +01:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Kim Alvefur
43ea784252 mod_version: Fix missing comma and correct prefix for util.pposix 2012-04-24 21:37:20 +02:00
Matthew Wild
a0a2887bf6 mod_version: Use pposix.uname() if available and os_version_command not set 2010-08-31 15:32:36 +01:00
Kim Alvefur
42ddba6e98 mod_version: Leave out the os element if hide_os_type is set 2010-08-01 15:58:10 +02:00
Kim Alvefur
9b900ecc5f mod_version: Make the command used to get OS version configurable 2010-08-01 15:56:52 +02:00
Matthew Wild
2bc0606453 Update copyright headers for 2010 2010-03-22 17:06:15 +00:00
Waqas Hussain
ce10683327 mod_version: Rewritten to use new API. Added reply caching, and fixed some issues. 2009-08-07 18:29:14 +05:00
Waqas Hussain
e051a3cad0 mod_version: Use the module API to read configuration options instead of configmanager 2009-08-07 18:27:49 +05:00
Matthew Wild
118883d655 Remove version number from copyright headers 2009-07-10 03:11:45 +01:00
Matthew Wild
fa242fdb09 mod_version: Use version from prosody.version 2009-06-05 01:27:41 +01:00
Matthew Wild
c80f91dc02 0.3->0.4 2009-03-20 20:16:25 +00:00
Matthew Wild
ae25bc7f67 mod_version: Operating system detection. Disable with hide_os_type = true in config 2009-02-15 15:52:11 +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
Waqas Hussain
c157d04ba3 mod_version: Removed and rearranged some code 2009-01-13 19:18:37 +05: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
dde71f5941 lxmppd -> Prosody 2008-12-03 13:02:23 +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
Waqas Hussain
f68d335729 Modules now sending disco replies 2008-11-26 08:27:09 +05:00
Waqas Hussain
04bebd603f Removed useless [[local send = require "core.sessionmanager".send_to_session]] from mod_uptime and mod_version 2008-11-16 04:52:11 +05:00
Matthew Wild
7fb5761449 Small fix for mod_version 2008-11-15 22:07:31 +00:00
Waqas Hussain
a88ddeb67d Fixed some whitespace. 2008-11-06 16:57:10 +05:00
Matthew Wild
40726a8a0a Fix for mod_version over s2s 2008-11-01 18:23:52 +00:00
Matthew Wild
005b4b9d75 mod_version is here 2008-10-30 21:26:53 +00:00