Commit Graph

1126 Commits (a2e8ab35556fa6fd6591c3bf64f2f9e873b2a4f4)

Author SHA1 Message Date
Matthew Wild 78051fedac moduleapi: Add module:add_timer(delay, callback) - automatically halts the timer on module unload 14 years ago
Matthew Wild 566fc32a4e modulemanager: Set module.loaded = false on 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 c4ff9b7e10 modulemanager: Report errors that happen when loading a shared module onto its original host 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 60b60d9c30 modulemanager: For children of shared modules, set module.environment to the empty environment for that module (useful to expose data or APIs at host.modules[module]) 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
Kim Alvefur c8279932bf core.certmanager: Log a message when a password is required but not supplied. fixes #214 14 years ago
Matthew Wild 0c6799c936 modulemanager: When a shared module becomes global, ensure it still gets loaded onto the original target host 14 years ago
Matthew Wild 1c88e91a19 modulemanager: Support for shared modules - function module.add_host(host_module) in a global module 14 years ago
Matthew Wild 800fd50ce0 modulemanager: Make module_has_method and module_call_method use rawget() 14 years ago
Matthew Wild 4664423a7b modulemanager: Use modulemap rather than hosts[host] (fix for when host == "*") 14 years ago
Matthew Wild 06c05a1916 modulemanager: Use api_instance rather than pluginenv.module (same thing) 14 years ago
Matthew Wild 28cb1b2a94 modulemanager: Allow loading a module onto "*" (part-fixes #228) 14 years ago
Matthew Wild 7f64044ee8 loggingmanager, util.logger: Remove name sinks and the ability to filter logs by source name (lots of code, hardly used if at all, and possibly broken) 14 years ago
Matthew Wild cd9f57bc12 portmanager: Support 'default_port' in service options 14 years ago
Matthew Wild 9f7aa91f8f portmanager: Add get_registered_services() to the public API 14 years ago
Matthew Wild 477f505f48 portmanager: Remove check for service_info.multiplex (now implemented in mod_net_multiplex) 14 years ago
Matthew Wild 917df51c8f portmanager: Fix pre-0.9 compatibility by taking default_interface and default_port from the listener instead of service table 14 years ago
Matthew Wild 0ae4e4464d portmanager: Allow services to specify their config option prefix 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 591bcc96e6 portmanager: Fire service-removed on unregister 14 years ago
Matthew Wild a156128a90 portmanager: Fix log message when multiple services are configured to use the same port 14 years ago
Matthew Wild 1ab1ddd3ee portmanager: Support item-added/net-provider (global and shared modules only!) 14 years ago
Matthew Wild 88ea07a5ef portmanager: Add unregister_service(), and allow multiple services with the same name (they get queued) 14 years ago
Matthew Wild e737bb93b7 modulemanager: Some refactoring. Deprecate module.host = "*", modules should call module:set_global() (which has been around since forever) 14 years ago
Matthew Wild 0b69252502 moduleapi: Set module.global = true when module:set_global() is called 14 years ago
Matthew Wild aef2645ec8 modulemanager: Use appropriate events object for global modules when firing item-removed on unload 14 years ago
Matthew Wild e7eecd81b7 portmanager: Add get_active_services() 14 years ago
Kim Alvefur 9ed71a359e s2smanager, mod_s2s: Move import of dns_max_depth to mod_s2s 14 years ago
Matthew Wild 9124783977 portmanager: Add get_service() 14 years ago
Kim Alvefur f886be3d2c core.portmanager: Make sure the private flag takes precedence over global interfaces 14 years ago
Marco Cirillo bbc4c94fc2 s2smanager, mod_s2s: clear up ip_hosts after s2s is marked as established, remove useless space from mod_s2s code 14 years ago
Florian Zeitz 0c2a6fec14 s2smanager: remove send_to_host. 14 years ago
Florian Zeitz 0699ab44aa modulemanager: include mod_c2s and mod_s2s into autoloaded modules. 14 years ago
Matthew Wild 68bf2a3956 s2smanager, mod_s2s, mod_s2s/s2sout: Split connection handling out of s2smanager into mod_s2s, and further split connection logic for s2sout to a module lib, s2sout.lib.lua 14 years ago
Matthew Wild 6605de3212 stanza_router: Replace s2s send logic with firing of a 'route/remote' event 14 years ago
Matthew Wild 8d6b12845c stanza_router: Remove obsolete commented code 14 years ago
Matthew Wild e2b553bd2a sessionmanager: Require uuid_generate() 14 years ago
Matthew Wild 308cf1c32f sessionmanager, mod_c2s: Move timeout logic to mod_c2s 14 years ago
Matthew Wild 335e19315e portmanager: Pass port to friendly_error_message() 14 years ago
Matthew Wild 70b25deb38 mod_c2s, sessionmanager, xmppclient_listener: Move all c2s network and stream logic into a new module, mod_c2s 14 years ago
Matthew Wild 346ca73cc2 portmanager: One manager to, in the darkness, bind them 14 years ago
Matthew Wild befc1f6162 moduleapi: Add module:shared(), a way to easily share data between multiple loaded modules 14 years ago
Matthew Wild 94327cb7b2 moduleapi: Add module:depends(), a way to safely depend upon another module at runtime 14 years ago
Matthew Wild 7780d6690a modulemanager: load(): Return and use the correct module object 14 years ago
Matthew Wild ef3a0660f4 modulemanager: Cleanup some unused variables, imports, whitespace and add a comment. 14 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. 14 years ago