Commit graph

21 commits

Author SHA1 Message Date
Kim Alvefur
e10171d44d mod_adhoc: Improve permission setting (fix #1482) BC
Rename 'user' permission mode to 'any' for clarity, too easily mistaken
for what the 'local_user' setting does.

It is also removed as a default and made a required argument.
2019-12-20 22:47:34 +01:00
Kim Alvefur
b843b92fe0 mod_adhoc: Remove unused variable [luacheck] 2019-12-23 21:34:34 +01:00
Kim Alvefur
dee63f8605 mod_adhoc: Add compat marker for older handling of adhoc items
Most modules use the module:provides() API which add the '-provides'
suffix. Previously module:add_item() was used.

See 58714123f600
2018-10-27 17:25:50 +02:00
Matthew Wild
f82932edec mod_adhoc: Use util.iterators.sorted_pairs() to sort commands 2018-09-21 14:37:18 +01:00
Emmanuel Gil Peyrot
a70ba0645c mod_adhoc: Simplify iq handling by hooking on iq-set/ instead of iq/. 2018-08-24 20:34:00 +02:00
Kim Alvefur
22cd130092 mod_adhoc: Remove unused local [luacheck] 2018-03-06 19:11:23 +01:00
Kim Alvefur
23b6bd0b3e mod_adhoc: Rename variable to avoid name clash [luacheck] 2017-12-05 12:32:51 +01:00
Kim Alvefur
7cfa1513cc plugins: Explicitly return to halt event propagation (session.send sometimes does not return true) 2015-09-21 23:06:22 +02:00
Florian Zeitz
df20900907 mod_adhoc: Add local_user permission 2013-07-24 23:30:32 +02:00
Florian Zeitz
c24241a389 mod_adhoc: Use mod_disco for disco handling 2013-07-24 22:58:44 +02:00
Florian Zeitz
81410b7371 mod_adhoc: Sort commands by node. This guarantees the order remains the same across restarts etc. 2013-07-24 22:08:07 +02:00
Florian Zeitz
f76c2aa90b mod_adhoc, mod_admin_adhoc, mod_announce: Use module:provides() to manage Ad-Hoc commands 2012-06-12 14:29:04 +02:00
Matthew Wild
78a5742d5d mod_adhoc: Use module:handle_items() 2011-12-10 05:45:07 +00:00
Florian Zeitz
95e4d42691 mod_adhoc: Add support for commands only executable by global administrators 2011-06-02 21:56:24 +02:00
Florian Zeitz
d78d543c9e mod_adhoc: Answer disco#info for node=xmlns_cmd 2010-10-01 16:44:49 +02:00
Florian Zeitz
15afe113cb mod_adhoc: remove 0.7 compat code 2010-09-01 22:46:35 +02:00
Florian Zeitz
a29ced4e87 mod_adhoc: Answer disco#info (This is a MUST in XEP-0050) 2010-08-22 20:53:40 +02:00
Florian Zeitz
c6b7b05768 mod_adhoc: Code restructuring 2010-08-22 20:48:47 +02:00
Matthew Wild
1ae3061151 mod_adhoc: Update for new is_admin usage 2010-06-22 19:04:10 +01:00
Matthew Wild
3bc4f15db0 mod_adhoc: Scan through list of items on load, in case items have been added before we were loaded 2010-06-11 13:23:10 +01:00
Matthew Wild
caa8f63eda mod_adhoc: Imported from prosody-modules, thanks Florob! 2010-06-09 21:27:43 +01:00