Commit Graph

100 Commits (0ec577b5dfed46586ff329e531bcc18a4cd5ec00)

Author SHA1 Message Date
Matthew Wild e986a0e137 moduleapi: Log suppressed status priority and message when not overriding 7 years ago
Matthew Wild 60f37d33c9 moduleapi: Remove overly-verbose debug logging on module status change 7 years ago
Matthew Wild dda9c3ad72 moduleapi: New API for modules to set a status 7 years ago
Kim Alvefur a8d08ff3ba core.moduleapi: Use convenience function for creating error object from stanza 8 years ago
Kim Alvefur ad3e5fd42b core.moduleapi: Use util.error for :send_iq errors 8 years ago
Kim Alvefur 7799a8a7bf core.moduleapi: Move util imports to top 8 years ago
Kim Alvefur 5806d67e82 core.moduleapi: Add a promise-based API for tracking IQ stanzas (fixes #714) 8 years ago
Kim Alvefur 9ca48298d7 moduleapi: Use pack from util.table 8 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
Matthew Wild 9b570dd0e2 moduleapi: module:depends(): Don't load shared modules onto the current host if the current host is '*'... 14 years ago
Matthew Wild 4b51577e13 moduleapi: Add module:unhook_object_event() 14 years ago
Matthew Wild 78051fedac moduleapi: Add module:add_timer(delay, callback) - automatically halts the timer on module unload 14 years ago
Matthew Wild 1e7d11c689 moduleapi: module:depends(): Load shared modules onto the current host even if they are loaded globally already 14 years ago
Matthew Wild f5b0737446 moduleapi: module:provides(): Add "-provider" onto the key name 14 years ago
Matthew Wild 5f18da1e08 moduleapi: module:provides(): Fix usage of wrong table 14 years ago
Matthew Wild e0a85aed90 moduleapi: Have modules internally store a reference to shared tables they use, to ensure they don't get collected while any module that had access to that table is still loaded (thanks Zash) 14 years ago
Matthew Wild a0549526b8 moduleapi: Add module:send() as an alias for core_post_stanza() from the current host's origin 14 years ago
Matthew Wild 4090846d76 moduleapi: Add module:provides(), a shortcut to add an item with the current module's name 14 years ago
Matthew Wild 0b69252502 moduleapi: Set module.global = true when module:set_global() is called 14 years ago
Matthew Wild befc1f6162 moduleapi: Add module:shared(), a way to easily share data between multiple loaded modules 15 years ago
Matthew Wild 94327cb7b2 moduleapi: Add module:depends(), a way to safely depend upon another module at runtime 15 years ago
Matthew Wild f2a5abecac modulemanager, moduleapi: Replace hooks multitable with an event_handlers map stored in individual modules. Also adds module:hook_object_event() to hook events on any util.events compatible object. 15 years ago
Matthew Wild 594d90204c modulemanager: Move in-module API functions to core.moduleapi (half the file size, yay) 15 years ago