prosody.git
7 years agos2smanager: Include a stub thread on destroyed sessions (thanks Link Mauve)
Kim Alvefur [Thu, 9 Jun 2016 12:04:50 +0000 (14:04 +0200)]
s2smanager: Include a stub thread on destroyed sessions (thanks Link Mauve)

7 years agomod_s2s: Add util.async support
Kim Alvefur [Mon, 30 May 2016 11:36:43 +0000 (13:36 +0200)]
mod_s2s: Add util.async support

7 years agoMerge 0.10->trunk
Kim Alvefur [Mon, 30 May 2016 11:30:53 +0000 (13:30 +0200)]
Merge 0.10->trunk

7 years agomod_s2s: Remove compat with namespace issue from Prosody pre-0.6.2
Kim Alvefur [Mon, 30 May 2016 11:30:32 +0000 (13:30 +0200)]
mod_s2s: Remove compat with namespace issue from Prosody pre-0.6.2

7 years agocore.stanza_router: Remove compatibility with Jabiru not including id attribute ...
Kim Alvefur [Mon, 30 May 2016 11:29:43 +0000 (13:29 +0200)]
core.stanza_router: Remove compatibility with Jabiru not including id attribute (originally added in 9b352c8a32e6)

7 years agoMerge 0.10->trunk
Kim Alvefur [Mon, 30 May 2016 11:17:28 +0000 (13:17 +0200)]
Merge 0.10->trunk

7 years agoutil.dataforms: Fix including default value for list-single when given as field.value...
Kim Alvefur [Sun, 29 May 2016 13:57:03 +0000 (15:57 +0200)]
util.dataforms: Fix including default value for list-single when given as field.value[].default

7 years agoprosodyctl: Fix typo (thanks av6)
Kim Alvefur [Sat, 28 May 2016 11:10:40 +0000 (13:10 +0200)]
prosodyctl: Fix typo (thanks av6)

7 years agoMerge 0.10->trunk
Kim Alvefur [Sat, 28 May 2016 10:51:12 +0000 (12:51 +0200)]
Merge 0.10->trunk

7 years agoMUC: Allow members (or above) in members-only non-anonymous rooms to see the member...
Kim Alvefur [Sat, 28 May 2016 10:37:51 +0000 (12:37 +0200)]
MUC: Allow members (or above) in members-only non-anonymous rooms to see the member list (fixes #445)

7 years agoutil.dataforms: Allow separation of options from values in list fields
Kim Alvefur [Fri, 27 May 2016 13:44:41 +0000 (15:44 +0200)]
util.dataforms: Allow separation of options from values in list fields

7 years agoMerge 0.10->trunk
Kim Alvefur [Wed, 25 May 2016 19:35:09 +0000 (21:35 +0200)]
Merge 0.10->trunk

7 years agoutil.pposix: Ask for shared file descriptor table using rfork() on *BSD (fixes #412)
Kim Alvefur [Wed, 25 May 2016 19:34:34 +0000 (21:34 +0200)]
util.pposix: Ask for shared file descriptor table using rfork() on *BSD (fixes #412)

7 years agoutil.crand: Silence compiler warning
Kim Alvefur [Wed, 25 May 2016 14:54:43 +0000 (16:54 +0200)]
util.crand: Silence compiler warning

7 years agoMerge 0.10->trunk
Matthew Wild [Sun, 22 May 2016 19:07:20 +0000 (20:07 +0100)]
Merge 0.10->trunk

7 years agotests: Add initial tests for util.async
Matthew Wild [Sun, 22 May 2016 19:06:51 +0000 (20:06 +0100)]
tests: Add initial tests for util.async

7 years agoutil.async: Add some more comments for clarity
Matthew Wild [Sun, 22 May 2016 19:06:12 +0000 (20:06 +0100)]
util.async: Add some more comments for clarity

7 years agoutil.cache: Add support for creating a proxy table to a cache, that looks and acts...
Matthew Wild [Sun, 22 May 2016 17:18:23 +0000 (18:18 +0100)]
util.cache: Add support for creating a proxy table to a cache, that looks and acts (mostly) like a normal table. No tests yet.

7 years agoMerge 0.10->trunk
Kim Alvefur [Sun, 22 May 2016 12:39:20 +0000 (14:39 +0200)]
Merge 0.10->trunk

7 years agoMerge 0.9->0.10
Kim Alvefur [Sun, 22 May 2016 12:39:14 +0000 (14:39 +0200)]
Merge 0.9->0.10

7 years agoutil.datamanager: Import tostring and type (fix global access)
Kim Alvefur [Sun, 22 May 2016 12:38:07 +0000 (14:38 +0200)]
util.datamanager: Import tostring and type (fix global access)

7 years agoutil.sql: Import type too (fix global access)
Kim Alvefur [Sun, 22 May 2016 12:37:52 +0000 (14:37 +0200)]
util.sql: Import type too (fix global access)

7 years agoMerge 0.10->trunk
Matthew Wild [Sun, 22 May 2016 01:16:57 +0000 (02:16 +0100)]
Merge 0.10->trunk

7 years agoutil.sql: Import pcall (fixes #677)
Matthew Wild [Sun, 22 May 2016 01:16:11 +0000 (02:16 +0100)]
util.sql: Import pcall (fixes #677)

7 years agomod_presence: Re-probe for contacts presence after outgoing 'subscribed' (fixes ...
Kim Alvefur [Sat, 21 May 2016 17:10:03 +0000 (19:10 +0200)]
mod_presence: Re-probe for contacts presence after outgoing 'subscribed' (fixes #673)

8 years agoMUC: Send participant list and subject on explicit joins (thanks daurnimator)
Kim Alvefur [Sun, 15 May 2016 14:55:19 +0000 (16:55 +0200)]
MUC: Send participant list and subject on explicit joins (thanks daurnimator)

8 years agoBacked out changeset 63141a85beea, broke multi-session nicks
Kim Alvefur [Sat, 14 May 2016 20:36:37 +0000 (22:36 +0200)]
Backed out changeset 63141a85beea, broke multi-session nicks

8 years agoMerge 0.10->trunk
Matthew Wild [Thu, 12 May 2016 17:45:59 +0000 (18:45 +0100)]
Merge 0.10->trunk

8 years agoutil.events: Fix comparison of event_name with nil instead of false (fixes #554)
Matthew Wild [Thu, 12 May 2016 17:45:30 +0000 (18:45 +0100)]
util.events: Fix comparison of event_name with nil instead of false (fixes #554)

8 years agoMUC: Treat explicit join presence as join
Kim Alvefur [Sat, 7 May 2016 15:22:58 +0000 (17:22 +0200)]
MUC: Treat explicit join presence as join

8 years agoMerge 0.10->trunk
Kim Alvefur [Wed, 4 May 2016 14:58:25 +0000 (16:58 +0200)]
Merge 0.10->trunk

8 years agoportmanager: Set default read size back to 4K
Kim Alvefur [Wed, 4 May 2016 13:31:32 +0000 (15:31 +0200)]
portmanager: Set default read size back to 4K

8 years agonet.server_event: Schedule another read callback if there is still data left in buffe...
Kim Alvefur [Wed, 4 May 2016 13:29:11 +0000 (15:29 +0200)]
net.server_event: Schedule another read callback if there is still data left in buffer after reading (fixes #583 for real)

8 years agonet.server_event: Collect entire one line function on one line
Kim Alvefur [Wed, 4 May 2016 13:20:33 +0000 (15:20 +0200)]
net.server_event: Collect entire one line function on one line

8 years agoMUC: Move status text out of <x> element (thanks Tobias)
Kim Alvefur [Wed, 4 May 2016 10:14:15 +0000 (12:14 +0200)]
MUC: Move status text out of <x> element (thanks Tobias)

8 years agoMUC: Lower priority of hook so plugins hooks run before
Kim Alvefur [Wed, 4 May 2016 09:08:51 +0000 (11:08 +0200)]
MUC: Lower priority of hook so plugins hooks run before

8 years agoMUC: Restore last message from state, not room config (missing change from cbb05b454c13)
Kim Alvefur [Sat, 30 Apr 2016 15:25:06 +0000 (17:25 +0200)]
MUC: Restore last message from state, not room config (missing change from cbb05b454c13)

8 years agoMUC: Separate config from live state
Kim Alvefur [Fri, 29 Apr 2016 15:04:05 +0000 (17:04 +0200)]
MUC: Separate config from live state

8 years agoMUC: Separate force-save parameter from save-entire-state flag
Kim Alvefur [Fri, 29 Apr 2016 14:54:45 +0000 (16:54 +0200)]
MUC: Separate force-save parameter from save-entire-state flag

8 years agoMUC: Stricter validation of deserialized data
Kim Alvefur [Fri, 29 Apr 2016 12:01:01 +0000 (14:01 +0200)]
MUC: Stricter validation of deserialized data

8 years agoMUC: Include the very last message in serialized form to keep it across eviction...
Kim Alvefur [Thu, 28 Apr 2016 21:34:19 +0000 (23:34 +0200)]
MUC: Include the very last message in serialized form to keep it across eviction and restore

8 years agoMUC: Add event for when room is done being created
Kim Alvefur [Thu, 28 Apr 2016 20:57:53 +0000 (22:57 +0200)]
MUC: Add event for when room is done being created

8 years agoMUC: Split out handling of the room-creating presence into its own method
Kim Alvefur [Thu, 28 Apr 2016 20:57:02 +0000 (22:57 +0200)]
MUC: Split out handling of the room-creating presence into its own method

8 years agoMUC: Split out handling of normal (un)available presence into its own method
Kim Alvefur [Thu, 28 Apr 2016 20:53:22 +0000 (22:53 +0200)]
MUC: Split out handling of normal (un)available presence into its own method

8 years agoMUC: Use a timestamp to keep track of when to unlock room instead of a timer (so...
Kim Alvefur [Thu, 28 Apr 2016 21:20:41 +0000 (23:20 +0200)]
MUC: Use a timestamp to keep track of when to unlock room instead of a timer (so timer does not unlock an evicted room)

8 years agoMUC: Move the locked flag into persisted data (so not to lose it on eviction)
Kim Alvefur [Thu, 28 Apr 2016 21:14:09 +0000 (23:14 +0200)]
MUC: Move the locked flag into persisted data (so not to lose it on eviction)

8 years agoMUC: Log cases of possible room resynchronisation
Kim Alvefur [Thu, 28 Apr 2016 20:03:00 +0000 (22:03 +0200)]
MUC: Log cases of possible room resynchronisation

8 years agoMUC: Be more careful with deserialization of rooms, fix case where a bare jid has...
Kim Alvefur [Wed, 27 Apr 2016 16:55:49 +0000 (18:55 +0200)]
MUC: Be more careful with deserialization of rooms, fix case where a bare jid has joined as multiple participants

8 years agoMUC: Use correct room name variable, fixes traceback (thanks mathieui)
Kim Alvefur [Wed, 27 Apr 2016 10:05:51 +0000 (12:05 +0200)]
MUC: Use correct room name variable, fixes traceback (thanks mathieui)

8 years agoMUC: Correctly iterate over suspended rooms while excluding live rooms
Kim Alvefur [Tue, 26 Apr 2016 11:40:03 +0000 (13:40 +0200)]
MUC: Correctly iterate over suspended rooms while excluding live rooms

8 years agoMUC: Don't force-save rooms where not needed
Kim Alvefur [Wed, 20 Apr 2016 10:29:31 +0000 (12:29 +0200)]
MUC: Don't force-save rooms where not needed

8 years agoMUC: Assign priorities to config form hooks so they have a consistent order on each...
Kim Alvefur [Tue, 19 Apr 2016 18:31:39 +0000 (20:31 +0200)]
MUC: Assign priorities to config form hooks so they have a consistent order on each start

8 years agoMerge 0.10->trunk
Kim Alvefur [Tue, 19 Apr 2016 17:00:46 +0000 (19:00 +0200)]
Merge 0.10->trunk

8 years agoMerge 0.9->0.10
Kim Alvefur [Tue, 19 Apr 2016 17:00:19 +0000 (19:00 +0200)]
Merge 0.9->0.10

8 years agonet.server_event: Check the buffer *length*, not the buffer itself (Fixes 100% cpu...
Kim Alvefur [Tue, 19 Apr 2016 16:58:30 +0000 (18:58 +0200)]
net.server_event: Check the buffer *length*, not the buffer itself (Fixes 100% cpu usage introduced in 65abd9d7bf88)

8 years agoMUC: Fix logic for when to broadcast unavailable presence (actual fix for 14170d161b39)
Kim Alvefur [Tue, 19 Apr 2016 16:46:07 +0000 (18:46 +0200)]
MUC: Fix logic for when to broadcast unavailable presence (actual fix for 14170d161b39)

8 years agoMUC: Return item-not-found as error when attempting to change role of non-existant...
Kim Alvefur [Tue, 19 Apr 2016 16:43:15 +0000 (18:43 +0200)]
MUC: Return item-not-found as error when attempting to change role of non-existant occupant

8 years agoMerge 0.10->trunk
Kim Alvefur [Tue, 19 Apr 2016 16:23:44 +0000 (18:23 +0200)]
Merge 0.10->trunk

8 years agoMerge 0.9->0.10
Kim Alvefur [Tue, 19 Apr 2016 16:23:02 +0000 (18:23 +0200)]
Merge 0.9->0.10

8 years agonet.server_event: Return the correct value as timeout
Kim Alvefur [Tue, 19 Apr 2016 16:20:39 +0000 (18:20 +0200)]
net.server_event: Return the correct value as timeout

8 years agonet.server_event: Fix traceback if event re-added during starttls
Kim Alvefur [Tue, 19 Apr 2016 16:18:57 +0000 (18:18 +0200)]
net.server_event: Fix traceback if event re-added during starttls

8 years agomod_bosh: Add annotations to ignore unused arguments [luacheck]
Kim Alvefur [Tue, 19 Apr 2016 16:00:04 +0000 (18:00 +0200)]
mod_bosh: Add annotations to ignore unused arguments [luacheck]

8 years agomod_bosh: Remove unused imports (also mistake in merge)
Kim Alvefur [Tue, 19 Apr 2016 15:59:49 +0000 (17:59 +0200)]
mod_bosh: Remove unused imports (also mistake in merge)

8 years agomod_bosh: Fix imports that got lost in merge
Kim Alvefur [Tue, 19 Apr 2016 15:59:22 +0000 (17:59 +0200)]
mod_bosh: Fix imports that got lost in merge

8 years agoMerge 0.10->trunk
Kim Alvefur [Tue, 19 Apr 2016 15:44:11 +0000 (17:44 +0200)]
Merge 0.10->trunk

8 years agomod_bosh: Don't decrement rid twice (thanks av6)
Kim Alvefur [Tue, 19 Apr 2016 15:44:04 +0000 (17:44 +0200)]
mod_bosh: Don't decrement rid twice (thanks av6)

8 years agoMerge 0.10->trunk
Kim Alvefur [Tue, 19 Apr 2016 15:32:22 +0000 (17:32 +0200)]
Merge 0.10->trunk

8 years agoMerge 0.9->0.10
Kim Alvefur [Tue, 19 Apr 2016 15:30:30 +0000 (17:30 +0200)]
Merge 0.9->0.10

8 years agonet.server_event: Re-add write event if writebuffer is non-empty after write (eg...
Kim Alvefur [Tue, 19 Apr 2016 15:24:00 +0000 (17:24 +0200)]
net.server_event: Re-add write event if writebuffer is non-empty after write (eg due to writes from ondrain callback) (fixes #661)

8 years agoMUC: Accept missing form as "instant room" request (fixes #377)
Kim Alvefur [Tue, 19 Apr 2016 15:20:39 +0000 (17:20 +0200)]
MUC: Accept missing form as "instant room" request (fixes #377)

8 years agoMerge 0.10->trunk
Kim Alvefur [Tue, 19 Apr 2016 15:10:42 +0000 (17:10 +0200)]
Merge 0.10->trunk

8 years agomod_bosh: Reject fractional 'wait' (See #343)
Kim Alvefur [Tue, 19 Apr 2016 10:33:58 +0000 (12:33 +0200)]
mod_bosh: Reject fractional 'wait' (See #343)

8 years agomod_bosh: Return a proper BOSH error response from XML parse error callback (see...
Kim Alvefur [Tue, 19 Apr 2016 10:19:15 +0000 (12:19 +0200)]
mod_bosh: Return a proper BOSH error response from XML parse error callback (see #343)

8 years agomod_bosh: Validate that 'sid' and 'wait' have sane values (fixes #475, also see ...
Kim Alvefur [Tue, 19 Apr 2016 10:18:19 +0000 (12:18 +0200)]
mod_bosh: Validate that 'sid' and 'wait' have sane values (fixes #475, also see #343)

8 years agomod_bosh: Validate 'to' host (see #343)
Kim Alvefur [Tue, 19 Apr 2016 10:17:00 +0000 (12:17 +0200)]
mod_bosh: Validate 'to' host (see #343)

8 years agomod_bosh: Return a proper BOSH error response instead of deprecated(?) status code...
Kim Alvefur [Tue, 19 Apr 2016 10:16:17 +0000 (12:16 +0200)]
mod_bosh: Return a proper BOSH error response instead of deprecated(?) status code (See #343)

8 years agomod_bosh: Log error returned from stream:feed()
Kim Alvefur [Tue, 19 Apr 2016 10:15:20 +0000 (12:15 +0200)]
mod_bosh: Log error returned from stream:feed()

8 years agomod_bosh: Return if a response has been sent already (See #343)
Kim Alvefur [Tue, 19 Apr 2016 10:14:07 +0000 (12:14 +0200)]
mod_bosh: Return if a response has been sent already (See #343)

8 years agomod_bosh: Remove unused import
Kim Alvefur [Tue, 19 Apr 2016 10:13:03 +0000 (12:13 +0200)]
mod_bosh: Remove unused import

8 years agoCHANGES: Update for MUC changes
Kim Alvefur [Mon, 18 Apr 2016 19:27:13 +0000 (21:27 +0200)]
CHANGES: Update for MUC changes

8 years agoMUC: Store rooms on disk on shutdown
Kim Alvefur [Mon, 18 Apr 2016 18:32:48 +0000 (20:32 +0200)]
MUC: Store rooms on disk on shutdown

8 years agoMUC: Cache public rooms and their names to speed up disco#items
Kim Alvefur [Mon, 18 Apr 2016 17:19:33 +0000 (19:19 +0200)]
MUC: Cache public rooms and their names to speed up disco#items

8 years agoMUC: Switch to util.cache for storing rooms, store rooms to disk on eviction
Kim Alvefur [Mon, 18 Apr 2016 17:18:37 +0000 (19:18 +0200)]
MUC: Switch to util.cache for storing rooms, store rooms to disk on eviction

8 years agoMUC: Add support for serializing live rooms, including occupants and their presence
Kim Alvefur [Mon, 18 Apr 2016 17:30:15 +0000 (19:30 +0200)]
MUC: Add support for serializing live rooms, including occupants and their presence

8 years agoMUC: Flatten format of serialized rooms
Kim Alvefur [Mon, 18 Apr 2016 17:29:23 +0000 (19:29 +0200)]
MUC: Flatten format of serialized rooms

8 years agoMUC: Move room deserialization to muc.lib
Kim Alvefur [Mon, 18 Apr 2016 17:26:26 +0000 (19:26 +0200)]
MUC: Move room deserialization to muc.lib

8 years agoMUC: Wrap "support" for the groupchat 1.0 join protocol in a config option to allow...
Kim Alvefur [Mon, 18 Apr 2016 17:20:51 +0000 (19:20 +0200)]
MUC: Wrap "support" for the groupchat 1.0 join protocol in a config option to allow disabling

8 years agoMUC/subject: Fix reference to room for save call (self, not room)
Kim Alvefur [Mon, 18 Apr 2016 17:09:10 +0000 (19:09 +0200)]
MUC/subject: Fix reference to room for save call (self, not room)

8 years agoMUC: Save yourself! (fixes reference to current room)
Kim Alvefur [Mon, 18 Apr 2016 17:08:31 +0000 (19:08 +0200)]
MUC: Save yourself! (fixes reference to current room)

8 years agoMUC: Assign occupants unavailable presence on room destruction, fixes destruction...
Kim Alvefur [Mon, 18 Apr 2016 14:51:09 +0000 (16:51 +0200)]
MUC: Assign occupants unavailable presence on room destruction, fixes destruction notification

8 years agoMUC: Use config passed to rew_roow()
Kim Alvefur [Mon, 18 Apr 2016 12:54:01 +0000 (14:54 +0200)]
MUC: Use config passed to rew_roow()

8 years agoMerge with Link Mauve
Kim Alvefur [Sun, 17 Apr 2016 20:28:48 +0000 (22:28 +0200)]
Merge with Link Mauve

8 years agoMUC: Move 'preserialization' step to muc.lib
Kim Alvefur [Sun, 17 Apr 2016 20:09:44 +0000 (22:09 +0200)]
MUC: Move 'preserialization' step to muc.lib

8 years agoUpdate every link to the documentation to use HTTPS
Emmanuel Gil Peyrot [Sat, 16 Apr 2016 20:08:05 +0000 (21:08 +0100)]
Update every link to the documentation to use HTTPS

8 years agomod_pubsub: Don?t require util.dataforms twice
Emmanuel Gil Peyrot [Sat, 16 Apr 2016 19:56:47 +0000 (20:56 +0100)]
mod_pubsub: Don?t require util.dataforms twice

8 years agoMUC: Save room after subject is changed
Kim Alvefur [Fri, 15 Apr 2016 16:03:55 +0000 (18:03 +0200)]
MUC: Save room after subject is changed

8 years agoMerge 0.10->trunk
Kim Alvefur [Fri, 15 Apr 2016 11:39:56 +0000 (13:39 +0200)]
Merge 0.10->trunk

8 years agoutil.iterators: Add iterator wrapper that works like select(n, ...) applied to origin...
Kim Alvefur [Fri, 15 Apr 2016 11:20:31 +0000 (13:20 +0200)]
util.iterators: Add iterator wrapper that works like select(n, ...) applied to original iterator

8 years agoutil.cache: Add method for iterating over values
Kim Alvefur [Fri, 15 Apr 2016 11:19:20 +0000 (13:19 +0200)]
util.cache: Add method for iterating over values

8 years agoMUC: Save room to storage once after form processing, not in each individual setter
Kim Alvefur [Fri, 15 Apr 2016 09:50:55 +0000 (11:50 +0200)]
MUC: Save room to storage once after form processing, not in each individual setter