Commit Graph

65 Commits (47c821cf549c8ea4645190a8f4bb18b7a2eaee2b)

Author SHA1 Message Date
Kim Alvefur 911bea7746 core.moduleapi: Factor out code for getting a scalar config option 9 years ago
Kim Alvefur 1ecc3a7918 core: Split some very long lines [luacheck] 9 years ago
Matthew Wild e2dbea53b4 moduleapi: 'duration' became 'times' 9 years ago
Kim Alvefur bb95b569ef moduleapi: Allow an origin session to be passed to module:send() 10 years ago
Kim Alvefur e349fb9c87 loggingmanager,modulemanager,moduleapi: Ignore warning about accessing _G.unpack [luacheck] 10 years ago
Kim Alvefur bad300a675 loggingmanager,modulemanager,moduleapi: Localize unpack compatible with Lua 5.2+ 10 years ago
Kim Alvefur 2ab1810f7d moduleapi: Add API method for getting a file path 10 years ago
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 10 years ago
Kim Alvefur 27265c20e2 core.*: Remove use of module() function 11 years ago
Matthew Wild dfcb1b6c06 moduleapi: Import util.stanza required for module:broadcast() 11 years ago
Matthew Wild a068b1d383 moduleapi: Add luacheck annotation 11 years ago
Matthew Wild e5323b0c7f moduleapi: Minor variable renaming to avoid clashes with the 'type' function 11 years ago
Matthew Wild 343f4f8c29 moduleapi: Clear self.event_handlers when unhooking an event, to prevent leaks 11 years ago
Matthew Wild 07fcf555ba moduleapi: module:measure_event(), module:measure_global_event(): Fix copy/paste error 11 years ago
Matthew Wild aec67b444e moduleapi: Remove accidental use of undefined and unnecessary 'priority' variable 11 years ago
Matthew Wild 1b81160835 moduleapi: Add module:broadcast() to send a stanza to a list of JIDs 11 years ago
Matthew Wild b3965a9069 moduleapi: New methods for modules to conveniently wrap events 11 years ago
Matthew Wild be7107c0ab moduleapi: Experimental API for modules to measure the rate+duration of events 11 years ago
Matthew Wild e0c0cffcc2 moduleapi: Module API for statsmanager 11 years ago
Kim Alvefur b58d3248b7 core.module{manager,api}: Fix for 010b141e91ed (Thanks v1ct0r) 11 years ago
Kim Alvefur 93a297bc8f core.modulemanager, core.moduleapi: Hack around dependency loop 11 years ago
Kim Alvefur a36064641e core.moduleapi: Use require instead of global to get storagemanager in module:open_store() 11 years ago
Kim Alvefur 36b77bca8b core.certmanager, core.moduleapi, mod_storage_sql, mod_storage_sql2: Import from util.paths 12 years ago
Matthew Wild 88613e4e18 moduleapi: Add module:unhook() 12 years ago
Florian Zeitz 1d833bb807 Remove all trailing whitespace 13 years ago
Matthew Wild c8e0c8a63b moduleapi: module:get_host_type() now returns 'global' for * and 'local' for non-components 13 years ago
Kim Alvefur d9bff06d21 moduleapi: in module:provides(), add the name of the module in item._provided_by 13 years ago
Kim Alvefur 7ad8f743bb 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 bcc1074dd5 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 82faa21dd3 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 cde9a24132 moduleapi: Make module:open_store() open a store named after the calling module by default 13 years ago
Matthew Wild 81216b737e moduleapi: Add module:open_store() as a front-end to storagemanager.open() 13 years ago
Matthew Wild 401fb29994 moduleapi: assert() that prosody.core_post_stanza is not nil 13 years ago
Marco Cirillo fd14557245 moduleapi: have get_host_items wrap on get_items from modulemanager, also add has_{feature/identity} to the API. 13 years ago
Kim Alvefur 1acfdf5914 core.*: Complete removal of all traces of the "core" section and section-related code. 13 years ago
Matthew Wild 8279c2cf00 moduleapi: Revert previous commit and add comment, it's meant to be this way 13 years ago
Matthew Wild 223d37a9d0 moduleapi: Fix require of modulemanager (thanks mva!) 13 years ago
Matthew Wild 537e1447c2 moduleapi: Clarify comment 14 years ago
Matthew Wild dfd02c4577 moduleapi: If path name ends with '-cache' create table as weak (keys and values) 14 years ago
Matthew Wild 9f5ddb8708 moduleapi: Remove unused import of util.multitable 14 years ago
Florian Zeitz d49b9bc2ab Eliminate direct setfenv usage 14 years ago
Matthew Wild 28e56af503 modulemanager, moduleapi: Turn module.event_handlers into a multitable and track object->event->handler associations correctly (thanks Zash) 14 years ago
Matthew Wild 0fe909f995 moduleapi, modulemanager: Re-structure module.event_handlers so that the same handler can harmlessly handle multiple events (thanks Zash) 14 years ago
Matthew Wild 8284f0b825 moduleapi: Don't auto-reload self when already reloading (fixes reload of modules with cyclic dependencies) 14 years ago
Matthew Wild 570492f627 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 e25c402ab0 moduleapi: Import util.timer 14 years ago
Matthew Wild e47a14da07 moduleapi: Remove unused variable 'module_items' 14 years ago
Matthew Wild 1565fe93a2 moduleapi: Rename module:hook_stanza() -> module:hook_tag() (hook_stanza works for compat) 14 years ago
Matthew Wild ba7525b97a moduleapi: get_host_type(): Return nil for global modules (no host) 14 years ago
Matthew Wild 898ec7a5cf moduleapi: Fix parameters to unhook_object_event() 14 years ago