Commit graph

87 commits

Author SHA1 Message Date
Kim Alvefur
c86e5f565c moduleapi: Use :send API from :broadcast for compactness 2018-07-14 21:25:34 +02:00
Kim Alvefur
b58c44e43a moduleapi: Lazy-load statsmanager on demand 2018-07-07 21:55:18 +02:00
Kim Alvefur
5884db59cc moduleapi: Lazy-load configmanager on demand simplify dependency graph 2018-07-07 21:55:00 +02:00
Kim Alvefur
61c6bb76de moduleapi: Remove unused and undocumented :has_feature and :has_identity 2018-02-23 17:11:59 +01:00
Kim Alvefur
9526273a1b moduleapi: Warn if a module being loaded as a dependency has been disabled 2017-12-27 00:42:57 +01:00
Kim Alvefur
3e5d5895f9 Merge 0.10->trunk 2017-03-16 23:49:27 +01:00
Kim Alvefur
911bea7746 core.moduleapi: Factor out code for getting a scalar config option 2017-03-15 15:07:16 +01:00
Kim Alvefur
ca65f0d2d3 Merge 0.10->trunk 2017-03-06 01:14:32 +01:00
Kim Alvefur
1ecc3a7918 core: Split some very long lines [luacheck] 2017-03-04 17:49:48 +01:00
Matthew Wild
37913e5ce8 Merge 0.10->trunk 2016-08-31 16:25:21 +01:00
Matthew Wild
e2dbea53b4 moduleapi: 'duration' became 'times' 2016-08-31 16:10:16 +01:00
Kim Alvefur
b22eef35d7 Merge 0.10->trunk 2016-04-07 13:36:58 +02:00
Kim Alvefur
bb95b569ef moduleapi: Allow an origin session to be passed to module:send() 2016-04-06 21:29:30 +02:00
Kim Alvefur
03bec1a290 Merge 0.10->trunk 2016-02-18 15:00:17 +01:00
Kim Alvefur
e349fb9c87 loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck] 2016-02-18 14:57:51 +01:00
Kim Alvefur
bad300a675 loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+ 2016-02-18 14:57:04 +01:00
Matthew Wild
ee4541c4d8 moduleapi: Silence luacheck warning about unused 'id' parameter 2016-02-05 00:10:27 +00:00
Matthew Wild
62e7b282ea Merge 0.10->trunk 2016-02-05 00:04:11 +00:00
Kim Alvefur
2ab1810f7d moduleapi: Add API method for getting a file path 2016-02-04 10:05:35 +01:00
Matthew Wild
11dcbc505b Merge 0.10->trunk 2016-02-01 21:28:07 +00:00
Matthew Wild
a1e077c5e7 modulemanager, util.pluginloader: Move logic for locating some module libraries to pluginloader, to fix problems with non-filesystem errors being masked by the second load_code call 2016-02-01 21:26:15 +00:00
Kim Alvefur
6ef7c4d808 Merge 0.10->trunk 2015-08-20 13:05:22 +02:00
Matthew Wild
daec51c435 Merge 0.10->trunk 2015-05-06 19:26:53 +01:00
Matthew Wild
dfcb1b6c06 moduleapi: Import util.stanza required for module:broadcast() 2015-05-06 19:11:27 +01:00
Matthew Wild
a068b1d383 moduleapi: Add luacheck annotation 2015-05-06 19:02:44 +01:00
Matthew Wild
e5323b0c7f moduleapi: Minor variable renaming to avoid clashes with the 'type' function 2015-05-06 19:02:07 +01:00
Matthew Wild
343f4f8c29 moduleapi: Clear self.event_handlers when unhooking an event, to prevent leaks 2015-05-06 19:01:16 +01:00
Matthew Wild
07fcf555ba moduleapi: module:measure_event(), module:measure_global_event(): Fix copy/paste error 2015-05-06 19:00:05 +01:00
Matthew Wild
aec67b444e moduleapi: Remove accidental use of undefined and unnecessary 'priority' variable 2015-05-06 18:58:29 +01:00
Matthew Wild
1b81160835 moduleapi: Add module:broadcast() to send a stanza to a list of JIDs 2015-05-06 18:37:46 +01:00
Kim Alvefur
009cde88a5 Merge 0.10->trunk 2015-05-03 18:39:27 +02:00
Matthew Wild
b3965a9069 moduleapi: New methods for modules to conveniently wrap events 2015-04-28 14:18:43 +01:00
Matthew Wild
be7107c0ab moduleapi: Experimental API for modules to measure the rate+duration of events 2015-04-28 13:52:07 +01:00
Kim Alvefur
27265c20e2 core.*: Remove use of module() function 2015-02-21 10:42:19 +01:00
Matthew Wild
6f1ffa163d Merge 0.10->trunk 2015-01-21 01:29:00 +00:00
Matthew Wild
e0c0cffcc2 moduleapi: Module API for statsmanager 2015-01-21 01:28:12 +00:00
Kim Alvefur
65159ec12f Merge 0.10->trunk 2014-09-23 01:44:16 +02:00
Kim Alvefur
b58d3248b7 core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r) 2014-09-23 00:23:33 +02:00
Kim Alvefur
93a297bc8f core.modulemanager, core.moduleapi: Hack around dependency loop 2014-09-17 14:48:49 +02:00
Kim Alvefur
a36064641e core.moduleapi: Use require instead of global to get storagemanager in module:open_store() 2014-09-17 14:47:52 +02:00
Kim Alvefur
1324a99495 Merge 0.10->trunk 2014-09-18 02:22:48 +02:00
Kim Alvefur
ccb5e87519 Merge 0.10->trunk 2014-05-09 23:35:54 +02:00
Kim Alvefur
36b77bca8b core.certmanager, core.moduleapi, mod_storage_sql, mod_storage_sql2: Import from util.paths 2014-05-09 19:35:29 +02:00
Waqas Hussain
37895d0d71 core.moduleapi: Fix some global accesses. 2013-11-06 14:38:51 -05:00
daurnimator
f725efa472 core/moduleapi: Return timer object from module:add_timer 2013-11-06 12:56:35 -05:00
Matthew Wild
88613e4e18 moduleapi: Add module:unhook() 2013-09-16 18:41:09 +01:00
Florian Zeitz
1d833bb807 Remove all trailing whitespace 2013-08-09 17:48:21 +02:00
Matthew Wild
c8e0c8a63b moduleapi: module:get_host_type() now returns 'global' for * and 'local' for non-components 2013-08-06 17:17:23 +01:00
Kim Alvefur
d9bff06d21 moduleapi: in module:provides(), add the name of the module in item._provided_by 2013-04-27 19:44:37 +02:00
Kim Alvefur
7ad8f743bb moduleapi: module:provides called without an item makes a copy of the environment instead. Fixes warnings about non-existent globals 2013-04-27 19:14:22 +02:00