Commit Graph

65 Commits (0ff1619ea4e2a6702a3fb70135fb656efd64790b)

Author SHA1 Message Date
Kim Alvefur 054f116c7d core.moduleapi: Factor out code for getting a scalar config option 9 years ago
Kim Alvefur 014168ff18 core: Split some very long lines [luacheck] 9 years ago
Matthew Wild be752a7c9e moduleapi: 'duration' became 'times' 9 years ago
Kim Alvefur c82d43ec12 moduleapi: Allow an origin session to be passed to module:send() 10 years ago
Kim Alvefur cecd6ca31d loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck] 10 years ago
Kim Alvefur de7b01d7d2 loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+ 10 years ago
Kim Alvefur 66a03adf5d moduleapi: Add API method for getting a file path 10 years ago
Matthew Wild d0c5e1571f 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 10 years ago
Kim Alvefur 075278ff98 core.*: Remove use of module() function 11 years ago
Matthew Wild e75d7d79c9 moduleapi: Import util.stanza required for module:broadcast() 11 years ago
Matthew Wild b3ab537add moduleapi: Add luacheck annotation 11 years ago
Matthew Wild f6e5d8089b moduleapi: Minor variable renaming to avoid clashes with the 'type' function 11 years ago
Matthew Wild d08df18e9c moduleapi: Clear self.event_handlers when unhooking an event, to prevent leaks 11 years ago
Matthew Wild 3da0331d8a moduleapi: module:measure_event(), module:measure_global_event(): Fix copy/paste error 11 years ago
Matthew Wild 82633f6735 moduleapi: Remove accidental use of undefined and unnecessary 'priority' variable 11 years ago
Matthew Wild 2648f37aa0 moduleapi: Add module:broadcast() to send a stanza to a list of JIDs 11 years ago
Matthew Wild 5b4edd3877 moduleapi: New methods for modules to conveniently wrap events 11 years ago
Matthew Wild dca21b3a3d moduleapi: Experimental API for modules to measure the rate+duration of events 11 years ago
Matthew Wild 5723bad906 moduleapi: Module API for statsmanager 11 years ago
Kim Alvefur ad7e3d7233 core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r) 11 years ago
Kim Alvefur 3d4d152711 core.modulemanager, core.moduleapi: Hack around dependency loop 11 years ago
Kim Alvefur 1b3c4c26a1 core.moduleapi: Use require instead of global to get storagemanager in module:open_store() 11 years ago
Kim Alvefur e31991a773 core.certmanager, core.moduleapi, mod_storage_sql, mod_storage_sql2: Import from util.paths 12 years ago
Matthew Wild 11c4b857b8 moduleapi: Add module:unhook() 12 years ago
Florian Zeitz 4b618a8727 Remove all trailing whitespace 13 years ago
Matthew Wild f7a578448d moduleapi: module:get_host_type() now returns 'global' for * and 'local' for non-components 13 years ago
Kim Alvefur 82b393b7fc moduleapi: in module:provides(), add the name of the module in item._provided_by 13 years ago
Kim Alvefur 0ccbb6e726 moduleapi: module:provides called without an item makes a copy of the environment instead. Fixes warnings about non-existent globals 13 years ago
Matthew Wild edecb033c4 moduleapi: Add module:get_option_inherited_set() to return a set that inherits items from a globally set set, if set 13 years ago
Matthew Wild 351975549e moduleapi: Add module:context(host) to produce a fake API context for a given host (or global). module:context("*"):get_option("foo") to get global options. 13 years ago
Kim Alvefur 10e527173b moduleapi: Make module:open_store() open a store named after the calling module by default 13 years ago
Matthew Wild fb13c42bfd moduleapi: Add module:open_store() as a front-end to storagemanager.open() 13 years ago
Matthew Wild 7357acbb32 moduleapi: assert() that prosody.core_post_stanza is not nil 13 years ago
Marco Cirillo 42cb071ede moduleapi: have get_host_items wrap on get_items from modulemanager, also add has_{feature/identity} to the API. 13 years ago
Kim Alvefur 75e786c1f0 core.*: Complete removal of all traces of the "core" section and section-related code. 13 years ago
Matthew Wild 54544179a1 moduleapi: Revert previous commit and add comment, it's meant to be this way 13 years ago
Matthew Wild 4dadc4d50c moduleapi: Fix require of modulemanager (thanks mva!) 13 years ago
Matthew Wild 9abda66396 moduleapi: Clarify comment 14 years ago
Matthew Wild a515ffa5e3 moduleapi: If path name ends with '-cache' create table as weak (keys and values) 14 years ago
Matthew Wild 2225720598 moduleapi: Remove unused import of util.multitable 14 years ago
Florian Zeitz 40ea2230d1 Eliminate direct setfenv usage 14 years ago
Matthew Wild 68907c01f2 modulemanager, moduleapi: Turn module.event_handlers into a multitable and track object->event->handler associations correctly (thanks Zash) 14 years ago
Matthew Wild c7136a5b2c moduleapi, modulemanager: Re-structure module.event_handlers so that the same handler can harmlessly handle multiple events (thanks Zash) 14 years ago
Matthew Wild 2649a8ec46 moduleapi: Don't auto-reload self when already reloading (fixes reload of modules with cyclic dependencies) 14 years ago
Matthew Wild 31dd275829 moduleapi: Add module:get_directory() to get module file's directory, and module:load_resource() to load a file relative to that directory 14 years ago
Matthew Wild 096514c670 moduleapi: Import util.timer 14 years ago
Matthew Wild de0b898bb8 moduleapi: Remove unused variable 'module_items' 14 years ago
Matthew Wild 1d2aa12ca4 moduleapi: Rename module:hook_stanza() -> module:hook_tag() (hook_stanza works for compat) 14 years ago
Matthew Wild f51b8f32b0 moduleapi: get_host_type(): Return nil for global modules (no host) 14 years ago
Matthew Wild 1ab99fe8b6 moduleapi: Fix parameters to unhook_object_event() 14 years ago