prosody.git
14 years agoxmppserver_listener: Minor logging fix: Prefer the session logger when available...
Waqas Hussain [Sun, 25 Oct 2009 16:06:35 +0000 (21:06 +0500)]
xmppserver_listener: Minor logging fix: Prefer the session logger when available to log invalid XML warnings.

14 years agoMUC: Fixed an issue with multi-session nicks where the 'from' attribute in a presence...
Waqas Hussain [Sat, 24 Oct 2009 23:19:24 +0000 (04:19 +0500)]
MUC: Fixed an issue with multi-session nicks where the 'from' attribute in a presence broadcast was not being properly set.

14 years agorostermanager: Fixed a global access.
Waqas Hussain [Wed, 21 Oct 2009 23:47:40 +0000 (04:47 +0500)]
rostermanager: Fixed a global access.

14 years agorostermanager: Refactored roster loading to remove duplicate code.
Waqas Hussain [Wed, 21 Oct 2009 22:46:54 +0000 (03:46 +0500)]
rostermanager: Refactored roster loading to remove duplicate code.

14 years agorostermanager: Log a warning when a self-contact is detected.
Waqas Hussain [Wed, 21 Oct 2009 22:38:00 +0000 (03:38 +0500)]
rostermanager: Log a warning when a self-contact is detected.

14 years agorostermanager: Ensure meta-data entry is present on roster load.
Waqas Hussain [Wed, 21 Oct 2009 22:34:50 +0000 (03:34 +0500)]
rostermanager: Ensure meta-data entry is present on roster load.

14 years agorostermanager: Remove self-contacts from loaded rosters.
Waqas Hussain [Wed, 21 Oct 2009 22:34:08 +0000 (03:34 +0500)]
rostermanager: Remove self-contacts from loaded rosters.

14 years agoPEP: Better reload support.
Waqas Hussain [Wed, 21 Oct 2009 21:26:27 +0000 (02:26 +0500)]
PEP: Better reload support.

14 years agoPEP: Send publish IQ result before broadcast.
Waqas Hussain [Wed, 21 Oct 2009 21:26:06 +0000 (02:26 +0500)]
PEP: Send publish IQ result before broadcast.

14 years agoPEP: Stricter checks on payload validity.
Waqas Hussain [Wed, 21 Oct 2009 21:16:10 +0000 (02:16 +0500)]
PEP: Stricter checks on payload validity.

14 years agoPEP: Clone payloads to allow plugins to reuse stanzas.
Waqas Hussain [Wed, 21 Oct 2009 21:13:02 +0000 (02:13 +0500)]
PEP: Clone payloads to allow plugins to reuse stanzas.

14 years agoPEP: Fixed namespace for the <item> element in PEP broadcasts.
Waqas Hussain [Wed, 21 Oct 2009 21:12:24 +0000 (02:12 +0500)]
PEP: Fixed namespace for the <item> element in PEP broadcasts.

14 years agoutil.require: Yes hg, I really did want to remove it, thanks.
Matthew Wild [Wed, 21 Oct 2009 19:30:42 +0000 (20:30 +0100)]
util.require: Yes hg, I really did want to remove it, thanks.

14 years agoprosody, util.require: Remove util.require, the shortest-lived module so far. Woke...
Matthew Wild [Wed, 21 Oct 2009 15:25:49 +0000 (16:25 +0100)]
prosody, util.require: Remove util.require, the shortest-lived module so far. Woke up this morning with a much simpler idea, which is also effective against C modules (I believe). Yay for metatables :)

14 years agomod_presence: Send unavailable presence when sending unsubscribed presence stanzas...
Waqas Hussain [Wed, 21 Oct 2009 14:01:02 +0000 (19:01 +0500)]
mod_presence: Send unavailable presence when sending unsubscribed presence stanzas (some legacy clients continue to display unsubscribed contacts as available).

14 years agoxmlhandlers: Reset state on error or stream close, fixes possible traceback
Matthew Wild [Wed, 21 Oct 2009 13:05:33 +0000 (14:05 +0100)]
xmlhandlers: Reset state on error or stream close, fixes possible traceback

14 years agoconnlisteners: Localize tostring, fixes possible traceback when LuaSec not installed
Matthew Wild [Wed, 21 Oct 2009 12:59:54 +0000 (13:59 +0100)]
connlisteners: Localize tostring, fixes possible traceback when LuaSec not installed

14 years agoMUC: List occupants in a room's disco#items response.
Waqas Hussain [Wed, 21 Oct 2009 08:32:32 +0000 (13:32 +0500)]
MUC: List occupants in a room's disco#items response.

14 years agoMerged with trunk.
Waqas Hussain [Wed, 21 Oct 2009 07:02:30 +0000 (12:02 +0500)]
Merged with trunk.

14 years agoMUC: Added config option 'restrict_room_creation' to allow restricting room creation...
Waqas Hussain [Wed, 21 Oct 2009 06:58:33 +0000 (11:58 +0500)]
MUC: Added config option 'restrict_room_creation' to allow restricting room creation to admins.

14 years agousermanager: Removed an unnecessary global access.
Waqas Hussain [Wed, 21 Oct 2009 06:41:11 +0000 (11:41 +0500)]
usermanager: Removed an unnecessary global access.

14 years agousermanager: Logged a clear warning when the 'admins' option is not a table.
Waqas Hussain [Wed, 21 Oct 2009 06:40:29 +0000 (11:40 +0500)]
usermanager: Logged a clear warning when the 'admins' option is not a table.

14 years agousermanager: Changed function is_admin to allow checking for host-specific admins.
Waqas Hussain [Wed, 21 Oct 2009 06:39:02 +0000 (11:39 +0500)]
usermanager: Changed function is_admin to allow checking for host-specific admins.

14 years agomod_lastactivity: Gave a positive priority to the presence event hook.
Waqas Hussain [Wed, 21 Oct 2009 06:29:43 +0000 (11:29 +0500)]
mod_lastactivity: Gave a positive priority to the presence event hook.

14 years agonet.dns: Don't expire records with TTL of 0 instantly
Matthew Wild [Tue, 20 Oct 2009 23:01:50 +0000 (00:01 +0100)]
net.dns: Don't expire records with TTL of 0 instantly

14 years agoMUC: Added 'name' config option, for specifying the component's name in disco responses.
Waqas Hussain [Tue, 20 Oct 2009 21:18:17 +0000 (02:18 +0500)]
MUC: Added 'name' config option, for specifying the component's name in disco responses.

14 years agomod_lastactivity: Persist data across reloads.
Waqas Hussain [Tue, 20 Oct 2009 20:02:26 +0000 (01:02 +0500)]
mod_lastactivity: Persist data across reloads.

14 years agomod_lastactivity: Allow users to request their own last activity.
Waqas Hussain [Tue, 20 Oct 2009 20:01:46 +0000 (01:01 +0500)]
mod_lastactivity: Allow users to request their own last activity.

14 years agoprosody.cfg.lua.dist: Convert to unix line endings from DOS
Matthew Wild [Tue, 20 Oct 2009 17:12:46 +0000 (18:12 +0100)]
prosody.cfg.lua.dist: Convert to unix line endings from DOS

14 years agoprosody: Use rawget to test for the existence of ssl (LuaSec) so we don't look for...
Matthew Wild [Tue, 20 Oct 2009 12:25:29 +0000 (13:25 +0100)]
prosody: Use rawget to test for the existence of ssl (LuaSec) so we don't look for a nil global

14 years agoutil-src/Makefile: Add missing flags to building of util.signal
Matthew Wild [Mon, 19 Oct 2009 20:08:40 +0000 (21:08 +0100)]
util-src/Makefile: Add missing flags to building of util.signal

14 years agonet.httpserver: Pass on interface option from new_from_config() (thanks Chris)
Matthew Wild [Mon, 19 Oct 2009 16:56:39 +0000 (17:56 +0100)]
net.httpserver: Pass on interface option from new_from_config() (thanks Chris)

14 years agoprosodyctl: Remove dependency on hostmanager, and friends
Matthew Wild [Mon, 19 Oct 2009 15:53:50 +0000 (16:53 +0100)]
prosodyctl: Remove dependency on hostmanager, and friends

14 years agos2smanager: Use session-specific logger to log outgoing data on outgoing s2s connections
Matthew Wild [Sun, 18 Oct 2009 15:16:27 +0000 (16:16 +0100)]
s2smanager: Use session-specific logger to log outgoing data on outgoing s2s connections

14 years agomod_lastactivity: Initial commit.
Waqas Hussain [Sun, 18 Oct 2009 17:49:03 +0000 (22:49 +0500)]
mod_lastactivity: Initial commit.

14 years agomod_uptime: Removed event hook for iq/bare. mod_uptime only deals with iq/host queries.
Waqas Hussain [Sun, 18 Oct 2009 17:45:41 +0000 (22:45 +0500)]
mod_uptime: Removed event hook for iq/bare. mod_uptime only deals with iq/host queries.

14 years agomod_uptime: Removed unused variables.
Waqas Hussain [Sun, 18 Oct 2009 17:44:18 +0000 (22:44 +0500)]
mod_uptime: Removed unused variables.

14 years agomod_uptime: Updated to use events (which also fixes a few minor issues).
Waqas Hussain [Sun, 18 Oct 2009 14:42:45 +0000 (19:42 +0500)]
mod_uptime: Updated to use events (which also fixes a few minor issues).

14 years agomod_saslauth: Fixed access of globals.
Waqas Hussain [Sun, 18 Oct 2009 13:50:35 +0000 (18:50 +0500)]
mod_saslauth: Fixed access of globals.

14 years agomod_saslauth: Marked the im-session stream feature as optional. This allows smart...
Waqas Hussain [Sun, 18 Oct 2009 13:48:34 +0000 (18:48 +0500)]
mod_saslauth: Marked the im-session stream feature as optional. This allows smart clients to save a round trip.

14 years agomod_time: Updated to use events (which also fixes a few minor issues).
Waqas Hussain [Sun, 18 Oct 2009 13:45:41 +0000 (18:45 +0500)]
mod_time: Updated to use events (which also fixes a few minor issues).

14 years agomod_ping: Updated to use events (which also fixes a few minor issues).
Waqas Hussain [Sun, 18 Oct 2009 13:26:58 +0000 (18:26 +0500)]
mod_ping: Updated to use events (which also fixes a few minor issues).

14 years agomod_console: Fixed traceback occuring on using module:list on unknown hosts.
Waqas Hussain [Sun, 18 Oct 2009 13:10:05 +0000 (18:10 +0500)]
mod_console: Fixed traceback occuring on using module:list on unknown hosts.

14 years agomod_console: Added help text for config:reload().
Waqas Hussain [Sun, 18 Oct 2009 13:01:13 +0000 (18:01 +0500)]
mod_console: Added help text for config:reload().

14 years agoMUC: Re-enable nick changes for non-multisession nicks.
Waqas Hussain [Sun, 18 Oct 2009 11:45:56 +0000 (16:45 +0500)]
MUC: Re-enable nick changes for non-multisession nicks.

14 years agomod_console: Add missing hosts:list() command
Matthew Wild [Sun, 18 Oct 2009 11:26:53 +0000 (12:26 +0100)]
mod_console: Add missing hosts:list() command

14 years agoMUC: Added support for reason messages in role and affiliation changes (e.g., reason...
Waqas Hussain [Sun, 18 Oct 2009 10:53:08 +0000 (15:53 +0500)]
MUC: Added support for reason messages in role and affiliation changes (e.g., reason for kick, etc).

14 years agoMUC: Rewrote code for mediated invites to be more robust, and to support legacy clients.
Waqas Hussain [Sun, 18 Oct 2009 10:28:00 +0000 (15:28 +0500)]
MUC: Rewrote code for mediated invites to be more robust, and to support legacy clients.

14 years agomod_vcard: Cleaned up unused variables and global accesses.
Waqas Hussain [Sun, 18 Oct 2009 02:40:14 +0000 (07:40 +0500)]
mod_vcard: Cleaned up unused variables and global accesses.

14 years agomod_vcard: Removed stream feature.
Waqas Hussain [Sun, 18 Oct 2009 02:33:24 +0000 (07:33 +0500)]
mod_vcard: Removed stream feature.

14 years agomod_vcard: Refactoring and cleanup.
Waqas Hussain [Sun, 18 Oct 2009 02:30:58 +0000 (07:30 +0500)]
mod_vcard: Refactoring and cleanup.

14 years agomod_vcard: Moved completely to new event based hooks.
Waqas Hussain [Sun, 18 Oct 2009 02:05:56 +0000 (07:05 +0500)]
mod_vcard: Moved completely to new event based hooks.

14 years agomod_vcard: Fixed traceback on attempt to set vcards by non-c2s sessions.
Waqas Hussain [Sun, 18 Oct 2009 01:55:00 +0000 (06:55 +0500)]
mod_vcard: Fixed traceback on attempt to set vcards by non-c2s sessions.

14 years agoMUC: Improved handling of error stanzas and made error messages concise.
Waqas Hussain [Sun, 18 Oct 2009 01:49:40 +0000 (06:49 +0500)]
MUC: Improved handling of error stanzas and made error messages concise.

14 years agoMUC: Ignore invisible presence (incorrectly broadcasted or forwarded by ejabberd).
Waqas Hussain [Sun, 18 Oct 2009 00:54:14 +0000 (05:54 +0500)]
MUC: Ignore invisible presence (incorrectly broadcasted or forwarded by ejabberd).

14 years agoMUC: Fixed an incorrect error message.
Waqas Hussain [Sun, 18 Oct 2009 00:37:28 +0000 (05:37 +0500)]
MUC: Fixed an incorrect error message.

14 years agoMUC: Kick occupants on sending error messages to other occupants.
Waqas Hussain [Sun, 18 Oct 2009 00:35:33 +0000 (05:35 +0500)]
MUC: Kick occupants on sending error messages to other occupants.

14 years agoMerge with trunk.
Waqas Hussain [Sun, 18 Oct 2009 00:19:40 +0000 (05:19 +0500)]
Merge with trunk.

14 years agomodulemanager: Module loading rewritten to gracefully deal with errors in module...
Waqas Hussain [Sun, 18 Oct 2009 00:17:07 +0000 (05:17 +0500)]
modulemanager: Module loading rewritten to gracefully deal with errors in module initialization.

14 years agomodulemanager: Use componentmanager to create new components.
Waqas Hussain [Sat, 17 Oct 2009 22:15:33 +0000 (03:15 +0500)]
modulemanager: Use componentmanager to create new components.

14 years agocomponentmanager: Added a FIXME comment.
Waqas Hussain [Sat, 17 Oct 2009 22:08:41 +0000 (03:08 +0500)]
componentmanager: Added a FIXME comment.

14 years agocomponentmanager: Unload mod_tls for components before removing them.
Waqas Hussain [Sat, 17 Oct 2009 22:07:25 +0000 (03:07 +0500)]
componentmanager: Unload mod_tls for components before removing them.

14 years agocomponentmanager: Let the default component handler handle stanzas if a component...
Waqas Hussain [Sat, 17 Oct 2009 20:52:37 +0000 (01:52 +0500)]
componentmanager: Let the default component handler handle stanzas if a component handler isn't available.

14 years agoMUC: Multiple sessions per nick.
Waqas Hussain [Sat, 17 Oct 2009 20:40:18 +0000 (01:40 +0500)]
MUC: Multiple sessions per nick.

14 years agomodulemanager: Fixed: Stanza modules were being auto-loaded for components (regressio...
Waqas Hussain [Sat, 17 Oct 2009 20:19:03 +0000 (01:19 +0500)]
modulemanager: Fixed: Stanza modules were being auto-loaded for components (regression in hg:1e674dae31ae).

14 years agomodulemanager: Fixed traceback on loading modules on unknown hosts.
Waqas Hussain [Sat, 17 Oct 2009 18:50:09 +0000 (23:50 +0500)]
modulemanager: Fixed traceback on loading modules on unknown hosts.

14 years agomodulemanager: Slightly rearranged code for more robust unloading of modules.
Waqas Hussain [Sat, 17 Oct 2009 18:48:30 +0000 (23:48 +0500)]
modulemanager: Slightly rearranged code for more robust unloading of modules.

14 years agoutil.stanza: Don't add xmlns to tags when serializing if same as the parent tag's...
Matthew Wild [Sat, 17 Oct 2009 18:47:01 +0000 (19:47 +0100)]
util.stanza: Don't add xmlns to tags when serializing if same as the parent tag's xmlns. Should hopefully shut up Gajim once and for all :)

14 years agostanza_router: Added a compatibility workaround for missing 'id' attribute in <iq...
Waqas Hussain [Sat, 17 Oct 2009 18:46:34 +0000 (23:46 +0500)]
stanza_router: Added a compatibility workaround for missing 'id' attribute in <iq/> elements.

14 years agocerts: Update default certs
Matthew Wild [Sat, 17 Oct 2009 17:09:07 +0000 (18:09 +0100)]
certs: Update default certs

14 years agonet.dns: Don't cache some records indefinitely
Matthew Wild [Sat, 17 Oct 2009 16:56:51 +0000 (17:56 +0100)]
net.dns: Don't cache some records indefinitely

14 years agomod_tls: Offer the host-specific cert (when there is one) to incoming c2s/s2s connect...
Matthew Wild [Sat, 17 Oct 2009 15:25:28 +0000 (16:25 +0100)]
mod_tls: Offer the host-specific cert (when there is one) to incoming c2s/s2s connections, fixes #30 (thanks, albert, Flo, johnny, and all who nagged me :) )

14 years agohostmanager: Create a server sslctx for incoming connections
Matthew Wild [Sat, 17 Oct 2009 15:23:03 +0000 (16:23 +0100)]
hostmanager: Create a server sslctx for incoming connections

14 years agonet.server: Allow changing the sslctx of a connection after it has been established
Matthew Wild [Sat, 17 Oct 2009 15:21:27 +0000 (16:21 +0100)]
net.server: Allow changing the sslctx of a connection after it has been established

14 years agoxmppserver_listener: Use listener log() if session doesn't have one yet (thanks Flo)
Matthew Wild [Sat, 17 Oct 2009 14:34:21 +0000 (15:34 +0100)]
xmppserver_listener: Use listener log() if session doesn't have one yet (thanks Flo)

14 years agomod_console: Add commands host:activate(host, config) and host:deactivate(host, reaso...
Matthew Wild [Sat, 17 Oct 2009 14:26:32 +0000 (15:26 +0100)]
mod_console: Add commands host:activate(host, config) and host:deactivate(host, reason) to add/remove hosts at runtime

14 years agos2smanager: Add incoming_s2s to the prosody object
Matthew Wild [Sat, 17 Oct 2009 14:25:30 +0000 (15:25 +0100)]
s2smanager: Add incoming_s2s to the prosody object

14 years agohostmanager: deactivate() now accepts a reason, closes s2s connections as well as...
Matthew Wild [Sat, 17 Oct 2009 14:23:50 +0000 (15:23 +0100)]
hostmanager: deactivate() now accepts a reason, closes s2s connections as well as disconnecting users, and unloads modules for the host

14 years agohostmanager: Add return _M;
Matthew Wild [Sat, 17 Oct 2009 13:43:38 +0000 (14:43 +0100)]
hostmanager: Add return _M;

14 years agotests: Fix stanza_router tests to work with the new routing code, finally all tests...
Matthew Wild [Sat, 17 Oct 2009 12:38:20 +0000 (13:38 +0100)]
tests: Fix stanza_router tests to work with the new routing code, finally all tests pass again \o/

14 years agotests: More environment magic to help get stuff working in a sandbox
Matthew Wild [Sat, 17 Oct 2009 12:36:40 +0000 (13:36 +0100)]
tests: More environment magic to help get stuff working in a sandbox

14 years agostanza_router: Localize hosts, full_sessions and bare_sessions, and take from the...
Matthew Wild [Sat, 17 Oct 2009 12:33:23 +0000 (13:33 +0100)]
stanza_router: Localize hosts, full_sessions and bare_sessions, and take from the prosody object instead of _G

14 years agocomponentmanager: Handle missing prosody object (helps us pass some tests)
Matthew Wild [Sat, 17 Oct 2009 12:31:39 +0000 (13:31 +0100)]
componentmanager: Handle missing prosody object (helps us pass some tests)

14 years agoprosody: Move global protection earlier (to before modules are loaded, etc.)
Matthew Wild [Sat, 17 Oct 2009 09:54:28 +0000 (10:54 +0100)]
prosody: Move global protection earlier (to before modules are loaded, etc.)

14 years agoprosody: Require new require :)
Matthew Wild [Sat, 17 Oct 2009 09:53:31 +0000 (10:53 +0100)]
prosody: Require new require :)

14 years agoprosody: Require some core/util libraries which core modules depend upon, C modules...
Matthew Wild [Sat, 17 Oct 2009 09:52:25 +0000 (10:52 +0100)]
prosody: Require some core/util libraries which core modules depend upon, C modules and other modules which write to _G

14 years agoprosody: Rename global net_activate_ports -> prosody.net_activate_ports
Matthew Wild [Sat, 17 Oct 2009 09:49:13 +0000 (10:49 +0100)]
prosody: Rename global net_activate_ports -> prosody.net_activate_ports

14 years agoutil.require: A replacement for Lua's require/module that doesn't load into the globa...
Matthew Wild [Sat, 17 Oct 2009 09:44:19 +0000 (10:44 +0100)]
util.require: A replacement for Lua's require/module that doesn't load into the global environment by default (C modules still get past this)

14 years agoutil.helpers: Add copyright header
Matthew Wild [Sat, 17 Oct 2009 09:42:19 +0000 (10:42 +0100)]
util.helpers: Add copyright header

14 years agotests: Have fake module() set _M to satisfy some modules
Matthew Wild [Fri, 16 Oct 2009 21:30:59 +0000 (22:30 +0100)]
tests: Have fake module() set _M to satisfy some modules

14 years agos2smanager: Fix access of 'config' global without requiring configmanager
Matthew Wild [Fri, 16 Oct 2009 21:19:20 +0000 (22:19 +0100)]
s2smanager: Fix access of 'config' global without requiring configmanager

14 years agotests: Add tests for new modulemanager load_modules_for_host code
Matthew Wild [Fri, 16 Oct 2009 21:13:54 +0000 (22:13 +0100)]
tests: Add tests for new modulemanager load_modules_for_host code

14 years agomodulemanager: Re-organise module loading to still work when no global modules_enable...
Matthew Wild [Fri, 16 Oct 2009 21:12:46 +0000 (22:12 +0100)]
modulemanager: Re-organise module loading to still work when no global modules_enabled is defined in the config (thanks hoelzro for accidentally discovering this one)

14 years agoutil.helpers: Add get_upvalue(function, name) helper
Matthew Wild [Fri, 16 Oct 2009 21:03:32 +0000 (22:03 +0100)]
util.helpers: Add get_upvalue(function, name) helper

14 years agoutil.dataforms: Incorporate slightly modified patch for list-single type from Florob
Matthew Wild [Fri, 16 Oct 2009 18:52:09 +0000 (19:52 +0100)]
util.dataforms: Incorporate slightly modified patch for list-single type from Florob

14 years agomod_vcard: Hide me from the trailing-whitespace police
Matthew Wild [Thu, 15 Oct 2009 23:11:55 +0000 (00:11 +0100)]
mod_vcard: Hide me from the trailing-whitespace police

14 years agomod_vcard: Add vcard_compatibility option to handle vcard stanzas routed to the full...
Matthew Wild [Thu, 15 Oct 2009 22:21:55 +0000 (23:21 +0100)]
mod_vcard: Add vcard_compatibility option to handle vcard stanzas routed to the full JID by ejabberd MUC rooms

14 years agoMerge with 0.5
Matthew Wild [Thu, 15 Oct 2009 13:20:08 +0000 (14:20 +0100)]
Merge with 0.5

14 years agoxmppserver_listener: Fix typo (thanks Jorj)
Matthew Wild [Thu, 15 Oct 2009 13:16:22 +0000 (14:16 +0100)]
xmppserver_listener: Fix typo (thanks Jorj)

14 years agoMerge with 0.5
Matthew Wild [Wed, 14 Oct 2009 13:12:14 +0000 (14:12 +0100)]
Merge with 0.5