aboutsummaryrefslogtreecommitdiffstats
path: root/core/moduleapi.lua
Commit message (Collapse)AuthorAgeFilesLines
* core.moduleapi: Factor out code for getting a scalar config optionKim Alvefur2017-03-151-15/+8
|
* core: Split some very long lines [luacheck]Kim Alvefur2017-03-041-2/+4
|
* moduleapi: 'duration' became 'times'Matthew Wild2016-08-311-1/+1
|
* moduleapi: Allow an origin session to be passed to module:send()Kim Alvefur2016-04-061-2/+2
|
* loggingmanager,modulemanager,moduleapi: Ignore warning about accessing ↵Kim Alvefur2016-02-181-1/+1
| | | | _G.unpack [luacheck]
* loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+Kim Alvefur2016-02-181-1/+2
|
* moduleapi: Add API method for getting a file pathKim Alvefur2016-02-041-0/+14
|
* modulemanager, util.pluginloader: Move logic for locating some module ↵Matthew Wild2016-02-011-4/+1
| | | | libraries to pluginloader, to fix problems with non-filesystem errors being masked by the second load_code call
* core.*: Remove use of module() functionKim Alvefur2015-02-211-6/+2
|
* moduleapi: Import util.stanza required for module:broadcast()Matthew Wild2015-05-061-0/+1
|
* moduleapi: Add luacheck annotationMatthew Wild2015-05-061-1/+1
|
* moduleapi: Minor variable renaming to avoid clashes with the 'type' functionMatthew Wild2015-05-061-14/+14
|
* moduleapi: Clear self.event_handlers when unhooking an event, to prevent leaksMatthew Wild2015-05-061-0/+1
|
* moduleapi: module:measure_event(), module:measure_global_event(): Fix ↵Matthew Wild2015-05-061-2/+2
| | | | copy/paste error
* moduleapi: Remove accidental use of undefined and unnecessary 'priority' ↵Matthew Wild2015-05-061-1/+1
| | | | variable
* moduleapi: Add module:broadcast() to send a stanza to a list of JIDsMatthew Wild2015-05-061-0/+9
|
* moduleapi: New methods for modules to conveniently wrap eventsMatthew Wild2015-04-281-0/+12
|
* moduleapi: Experimental API for modules to measure the rate+duration of eventsMatthew Wild2015-04-281-0/+19
|
* moduleapi: Module API for statsmanagerMatthew Wild2015-01-211-0/+5
|
* core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r)Kim Alvefur2014-09-231-1/+3
|
* core.modulemanager, core.moduleapi: Hack around dependency loopKim Alvefur2014-09-171-2/+5
|
* core.moduleapi: Use require instead of global to get storagemanager in ↵Kim Alvefur2014-09-171-1/+2
| | | | module:open_store()
* core.certmanager, core.moduleapi, mod_storage_sql, mod_storage_sql2: Import ↵Kim Alvefur2014-05-091-1/+2
| | | | from util.paths
* moduleapi: Add module:unhook()Matthew Wild2013-09-161-0/+4
|
* Remove all trailing whitespaceFlorian Zeitz2013-08-091-6/+6
|
* moduleapi: module:get_host_type() now returns 'global' for * and 'local' for ↵Matthew Wild2013-08-061-1/+1
| | | | non-components
* moduleapi: in module:provides(), add the name of the module in item._provided_byKim Alvefur2013-04-271-0/+1
|
* moduleapi: module:provides called without an item makes a copy of the ↵Kim Alvefur2013-04-271-1/+7
| | | | environment instead. Fixes warnings about non-existent globals
* moduleapi: Add module:get_option_inherited_set() to return a set that ↵Matthew Wild2013-04-271-0/+12
| | | | inherits items from a globally set set, if set
* moduleapi: Add module:context(host) to produce a fake API context for a ↵Matthew Wild2013-04-271-0/+4
| | | | given host (or global). module:context("*"):get_option("foo") to get global options.
* moduleapi: Make module:open_store() open a store named after the calling ↵Kim Alvefur2013-04-191-1/+1
| | | | module by default
* moduleapi: Add module:open_store() as a front-end to storagemanager.open()Matthew Wild2013-04-191-0/+4
|
* moduleapi: assert() that prosody.core_post_stanza is not nilMatthew Wild2013-04-051-1/+4
|
* moduleapi: have get_host_items wrap on get_items from modulemanager, also ↵Marco Cirillo2013-04-011-17/+15
| | | | add has_{feature/identity} to the API.
* core.*: Complete removal of all traces of the "core" section and ↵Kim Alvefur2013-03-231-5/+2
| | | | section-related code.
* moduleapi: Revert previous commit and add comment, it's meant to be this wayMatthew Wild2012-09-291-1/+1
|
* moduleapi: Fix require of modulemanager (thanks mva!)Matthew Wild2012-09-291-1/+1
|
* moduleapi: Clarify commentMatthew Wild2012-08-031-1/+1
|
* moduleapi: If path name ends with '-cache' create table as weak (keys and ↵Matthew Wild2012-07-301-1/+4
| | | | values)
* Merge with FlorobMatthew Wild2012-07-281-3/+1
|\
| * moduleapi: Remove unused import of util.multitableMatthew Wild2012-07-191-3/+1
| |
* | Eliminate direct setfenv usageFlorian Zeitz2012-06-081-4/+3
|/
* modulemanager, moduleapi: Turn module.event_handlers into a multitable and ↵Matthew Wild2012-05-191-6/+1
| | | | track object->event->handler associations correctly (thanks Zash)
* moduleapi, modulemanager: Re-structure module.event_handlers so that the ↵Matthew Wild2012-05-181-1/+6
| | | | same handler can harmlessly handle multiple events (thanks Zash)
* moduleapi: Don't auto-reload self when already reloading (fixes reload of ↵Matthew Wild2012-05-111-1/+1
| | | | modules with cyclic dependencies)
* moduleapi: Add module:get_directory() to get module file's directory, and ↵Matthew Wild2012-04-281-0/+10
| | | | module:load_resource() to load a file relative to that directory
* moduleapi: Import util.timerMatthew Wild2012-04-281-0/+1
|
* moduleapi: Remove unused variable 'module_items'Matthew Wild2012-04-281-1/+0
|
* moduleapi: Rename module:hook_stanza() -> module:hook_tag() (hook_stanza ↵Matthew Wild2012-04-271-1/+2
| | | | works for compat)
* moduleapi: get_host_type(): Return nil for global modules (no host)Matthew Wild2012-04-271-1/+1
|