prosody.git
10 years agoMerge with Prosody trunk
Matthew Wild [Thu, 8 May 2014 17:09:59 +0000 (18:09 +0100)]
Merge with Prosody trunk

10 years agoplugins/muc/muc.lib: Move sending of occupant list to joining user out of hook, and...
daurnimator [Mon, 21 Apr 2014 21:51:32 +0000 (17:51 -0400)]
plugins/muc/muc.lib: Move sending of occupant list to joining user out of hook, and into main flow: It has to occur before publication of their status

10 years agoplugins/muc/members_only.lib: Compare affiliations via rank; wrap some long lines
daurnimator [Mon, 21 Apr 2014 21:49:57 +0000 (17:49 -0400)]
plugins/muc/members_only.lib: Compare affiliations via rank; wrap some long lines

10 years agoplugins/muc/muc.lib: Remove reversed conditionals when firing pre- events
daurnimator [Mon, 21 Apr 2014 21:39:18 +0000 (17:39 -0400)]
plugins/muc/muc.lib: Remove reversed conditionals when firing pre- events

10 years agoMerge daurnimator->trunk
Matthew Wild [Mon, 21 Apr 2014 16:42:44 +0000 (17:42 +0100)]
Merge daurnimator->trunk

10 years agoMerge 0.10->trunk
Kim Alvefur [Mon, 21 Apr 2014 00:43:38 +0000 (02:43 +0200)]
Merge 0.10->trunk

10 years agocertmanager: Move ssl.protocol handling to after ssl.options is a table (thanks Ralph)
Kim Alvefur [Mon, 21 Apr 2014 00:43:09 +0000 (02:43 +0200)]
certmanager: Move ssl.protocol handling to after ssl.options is a table (thanks Ralph)

10 years agoMerge 0.10->trunk
Kim Alvefur [Sun, 20 Apr 2014 21:39:45 +0000 (23:39 +0200)]
Merge 0.10->trunk

10 years agocertmanager: Fix traceback if no global 'ssl' section set (thanks albert)
Kim Alvefur [Sun, 20 Apr 2014 19:25:26 +0000 (21:25 +0200)]
certmanager: Fix traceback if no global 'ssl' section set (thanks albert)

10 years agomod_http: Update to disable peer verification with the new certmanager
Kim Alvefur [Sat, 19 Apr 2014 19:59:53 +0000 (21:59 +0200)]
mod_http: Update to disable peer verification with the new certmanager

10 years agoplugins/muc/subject.lib: If subject is not set by an occupant, it should come from...
daurnimator [Fri, 18 Apr 2014 16:20:07 +0000 (12:20 -0400)]
plugins/muc/subject.lib: If subject is not set by an occupant, it should come from room jid itself

10 years agoplugins/muc/muc.lib: When user leaves; set their role to nil
daurnimator [Fri, 18 Apr 2014 16:19:33 +0000 (12:19 -0400)]
plugins/muc/muc.lib: When user leaves; set their role to nil

10 years agoplugins/muc: Move 'moderated' code to seperate file; changes default "muc-get-default...
daurnimator [Fri, 18 Apr 2014 16:19:04 +0000 (12:19 -0400)]
plugins/muc: Move 'moderated' code to seperate file; changes default "muc-get-default-role" behaviour

10 years agomod_s2s: Replace open_stream() with function that only adds s2s/dialback attributes...
Kim Alvefur [Fri, 18 Apr 2014 05:51:41 +0000 (07:51 +0200)]
mod_s2s: Replace open_stream() with function that only adds s2s/dialback attributes to stream header

10 years agoutil.xmppstream: Check for callback that may add stream header attributes
Kim Alvefur [Fri, 18 Apr 2014 05:50:44 +0000 (07:50 +0200)]
util.xmppstream: Check for callback that may add stream header attributes

10 years agoMerge with daurnimator
Matthew Wild [Thu, 17 Apr 2014 08:01:32 +0000 (09:01 +0100)]
Merge with daurnimator

10 years agoplugins/muc: Move 'hidden' ('public') code to own file
daurnimator [Wed, 16 Apr 2014 18:16:14 +0000 (14:16 -0400)]
plugins/muc: Move 'hidden' ('public') code to own file

10 years agoplugins/muc: Move subject code to seperate module
daurnimator [Wed, 16 Apr 2014 17:54:51 +0000 (13:54 -0400)]
plugins/muc: Move subject code to seperate module

10 years agoplugins/muc/muc.lib: Refactor subject logic; fix bug of mixed up subject/author
daurnimator [Tue, 15 Apr 2014 22:20:56 +0000 (18:20 -0400)]
plugins/muc/muc.lib: Refactor subject logic; fix bug of mixed up subject/author

10 years agoplugins/muc: Move persistent room configuration to own module
daurnimator [Tue, 15 Apr 2014 21:06:04 +0000 (17:06 -0400)]
plugins/muc: Move persistent room configuration to own module

10 years agoMerge 0.10->trunk
Kim Alvefur [Tue, 15 Apr 2014 19:54:44 +0000 (21:54 +0200)]
Merge 0.10->trunk

10 years agonet.http.server: Fix some typos introduced in 420c0d3b8583.
Daurnimator [Tue, 15 Apr 2014 18:51:49 +0000 (14:51 -0400)]
net.http.server: Fix some typos introduced in 420c0d3b8583.

10 years agoMerge 0.10->trunk
Kim Alvefur [Tue, 15 Apr 2014 18:36:39 +0000 (20:36 +0200)]
Merge 0.10->trunk

10 years agoMerge 0.10->trunk
Matthew Wild [Tue, 15 Apr 2014 17:08:16 +0000 (18:08 +0100)]
Merge 0.10->trunk

10 years agonet.http.server: Add prepare_header() and finish_response() to allow sending chunked...
Daurnimator [Tue, 15 Apr 2014 17:07:45 +0000 (18:07 +0100)]
net.http.server: Add prepare_header() and finish_response() to allow sending chunked responses via the API

10 years agocertmanager: Update ssl_compression when config is reloaded
Kim Alvefur [Mon, 14 Apr 2014 23:02:56 +0000 (01:02 +0200)]
certmanager: Update ssl_compression when config is reloaded

10 years agocertmanager: Reformat core ssl defaults
Kim Alvefur [Mon, 14 Apr 2014 22:49:17 +0000 (00:49 +0200)]
certmanager: Reformat core ssl defaults

10 years agocertmanager: Support ssl.protocol syntax like "tlsv1+" that disables older protocols
Kim Alvefur [Mon, 14 Apr 2014 22:45:07 +0000 (00:45 +0200)]
certmanager: Support ssl.protocol syntax like "tlsv1+" that disables older protocols

10 years agocertmanager: Merge ssl.options, verify etc from core defaults and global ssl settings...
Kim Alvefur [Mon, 14 Apr 2014 22:32:11 +0000 (00:32 +0200)]
certmanager: Merge ssl.options, verify etc from core defaults and global ssl settings with inheritance while allowing options to be disabled per virtualhost

10 years agocertmanager: Wrap long line and add comment
Kim Alvefur [Mon, 14 Apr 2014 21:41:26 +0000 (23:41 +0200)]
certmanager: Wrap long line and add comment

10 years agocertmanager: Concatenate cipher list if given as a table
Kim Alvefur [Mon, 14 Apr 2014 21:34:35 +0000 (23:34 +0200)]
certmanager: Concatenate cipher list if given as a table

10 years agocertmanager: Allow non-server contexts to be without certificate and key
Kim Alvefur [Mon, 14 Apr 2014 21:09:28 +0000 (23:09 +0200)]
certmanager: Allow non-server contexts to be without certificate and key

10 years agocertmanager: Check for non-nil values instead of true-ish values, allows removing...
Kim Alvefur [Mon, 14 Apr 2014 21:00:44 +0000 (23:00 +0200)]
certmanager: Check for non-nil values instead of true-ish values, allows removing defaults

10 years agoMerge 0.10->trunk
Kim Alvefur [Thu, 10 Apr 2014 14:52:03 +0000 (16:52 +0200)]
Merge 0.10->trunk

10 years agomod_s2s: Revert e626ee2fe106 change, it broke Dialback
Kim Alvefur [Thu, 10 Apr 2014 14:49:59 +0000 (16:49 +0200)]
mod_s2s: Revert e626ee2fe106 change, it broke Dialback

10 years agoMerge 0.10->trunk
Kim Alvefur [Thu, 10 Apr 2014 11:16:54 +0000 (13:16 +0200)]
Merge 0.10->trunk

10 years agoMerge 0.9->0.10
Kim Alvefur [Thu, 10 Apr 2014 11:15:11 +0000 (13:15 +0200)]
Merge 0.9->0.10

10 years agomod_c2s, mod_s2s, mod_component, util.xmppstream: Move all session:open_stream()...
Kim Alvefur [Thu, 10 Apr 2014 11:13:07 +0000 (13:13 +0200)]
mod_c2s, mod_s2s, mod_component, util.xmppstream: Move all session:open_stream() functions to util.xmppstream

10 years agoprosodyctl, util.prosodyctl: Update to reflect that mod_posix gets loaded by default...
Kim Alvefur [Wed, 9 Apr 2014 22:24:29 +0000 (00:24 +0200)]
prosodyctl, util.prosodyctl: Update to reflect that mod_posix gets loaded by default on posix platforms

10 years agomod_posix: Remove compat code for 0.5
Kim Alvefur [Wed, 9 Apr 2014 22:23:35 +0000 (00:23 +0200)]
mod_posix: Remove compat code for 0.5

10 years agoprosody: Check dependencies later in the startup sequence
Kim Alvefur [Wed, 9 Apr 2014 18:46:39 +0000 (20:46 +0200)]
prosody: Check dependencies later in the startup sequence

10 years agoutil.dependencies: Check for Lua 5.1. We don't currently support any other versions...
Waqas Hussain [Wed, 9 Apr 2014 18:01:02 +0000 (14:01 -0400)]
util.dependencies: Check for Lua 5.1. We don't currently support any other versions. LuaJIT identifies as 5.1.

10 years agomod_storage_sql2: Build counter query without ORDER BY clause
Kim Alvefur [Tue, 8 Apr 2014 17:23:11 +0000 (19:23 +0200)]
mod_storage_sql2: Build counter query without ORDER BY clause

10 years agomod_admin_telnet: muc:*: Fix nil index error when a room JID is passed with a non...
Matthew Wild [Sat, 5 Apr 2014 14:05:40 +0000 (15:05 +0100)]
mod_admin_telnet: muc:*: Fix nil index error when a room JID is passed with a non-existent host

10 years agoplugins/muc/muc.lib: Move members_only into seperate file
daurnimator [Fri, 4 Apr 2014 15:20:20 +0000 (11:20 -0400)]
plugins/muc/muc.lib: Move members_only into seperate file

10 years agoplugins/muc/muc.lib: Turn get_default_role into an event
daurnimator [Thu, 3 Apr 2014 22:36:28 +0000 (18:36 -0400)]
plugins/muc/muc.lib: Turn get_default_role into an event

10 years agoplugins/muc/muc.lib: Fix getting a list of occupants by role (it was sending presence...
daurnimator [Thu, 3 Apr 2014 22:10:16 +0000 (18:10 -0400)]
plugins/muc/muc.lib: Fix getting a list of occupants by role (it was sending presences instead of items inside an iq)

10 years agoMerge 0.10->trunk
Kim Alvefur [Thu, 3 Apr 2014 21:54:58 +0000 (23:54 +0200)]
Merge 0.10->trunk

10 years agomod_compression: Only iterate over correctly named and namespaced child tags of compr...
Kim Alvefur [Thu, 3 Apr 2014 21:48:12 +0000 (23:48 +0200)]
mod_compression: Only iterate over correctly named and namespaced child tags of compression feature

10 years agomod_compression: Use get_child() and get_child_text()
Kim Alvefur [Thu, 3 Apr 2014 21:40:20 +0000 (23:40 +0200)]
mod_compression: Use get_child() and get_child_text()

10 years agomod_compression: Remove checks for impossible conditions
Kim Alvefur [Thu, 3 Apr 2014 21:33:38 +0000 (23:33 +0200)]
mod_compression: Remove checks for impossible conditions

10 years agoplugins/muc: Move valid_roles, valid_affiliations and is_kickable_error to new muc...
daurnimator [Thu, 3 Apr 2014 21:09:04 +0000 (17:09 -0400)]
plugins/muc: Move valid_roles, valid_affiliations and is_kickable_error to new muc/util module

10 years agoplugins/muc/muc.lib: Use util.iterators to count occupants
daurnimator [Thu, 3 Apr 2014 20:10:43 +0000 (16:10 -0400)]
plugins/muc/muc.lib: Use util.iterators to count occupants

10 years agoplugins/muc/muc.lib: Move occupancy check to later in `deconstruct_stanza_id`: As...
daurnimator [Thu, 3 Apr 2014 20:04:04 +0000 (16:04 -0400)]
plugins/muc/muc.lib: Move occupancy check to later in `deconstruct_stanza_id`: As vcards are from the bare jid, you need to use the `from_jid` out of the encoded `id`

10 years agoplugins/muc: Move history to an external module
daurnimator [Thu, 3 Apr 2014 19:14:52 +0000 (15:14 -0400)]
plugins/muc: Move history to an external module

This resulted in the split up of the main muc-occupant-joined event handler into 3 seperate ones, handling occupant list, history and subject

10 years agoplugins/muc: Move `whois` code to seperate file
daurnimator [Thu, 3 Apr 2014 18:24:27 +0000 (14:24 -0400)]
plugins/muc: Move `whois` code to seperate file

10 years agoplugins/muc/muc.lib: Remember to coerce nil role to "none"
daurnimator [Thu, 3 Apr 2014 18:23:06 +0000 (14:23 -0400)]
plugins/muc/muc.lib: Remember to coerce nil role to "none"

10 years agoplugins/muc/muc.lib: Refactor of change-nick presence handling
daurnimator [Thu, 3 Apr 2014 16:44:27 +0000 (12:44 -0400)]
plugins/muc/muc.lib: Refactor of change-nick presence handling

  - Allow `nick` to be passed to `publicise_occupant_status`.
  - Moves multi-session handling to a more 'edge-case' area of code

10 years agoplugins/muc/muc.lib: Clean up whois handling
daurnimator [Thu, 3 Apr 2014 16:25:03 +0000 (12:25 -0400)]
plugins/muc/muc.lib: Clean up whois handling

  - adds functions `can_see_real_jids` and `get_base_presence`
  - In `publicise_occupant_status`, we don't generate each type of presence until it's used

10 years agoplugins/muc/occupant.lib: Don't allow an unavailable session to be the primary jid
daurnimator [Wed, 2 Apr 2014 22:37:52 +0000 (18:37 -0400)]
plugins/muc/occupant.lib: Don't allow an unavailable session to be the primary jid

10 years agoplugins/muc: Move name functions to seperate module
daurnimator [Wed, 2 Apr 2014 21:02:07 +0000 (17:02 -0400)]
plugins/muc: Move name functions to seperate module

10 years agoplugins/muc: Move password functions to seperate module
daurnimator [Wed, 2 Apr 2014 20:57:59 +0000 (16:57 -0400)]
plugins/muc: Move password functions to seperate module

10 years agoplugins/muc/lock.lib: Need to let creator into the locked room :)
daurnimator [Wed, 2 Apr 2014 19:56:37 +0000 (15:56 -0400)]
plugins/muc/lock.lib: Need to let creator into the locked room :)

10 years agoplugins/muc: Move locking to seperate module
daurnimator [Wed, 2 Apr 2014 19:48:25 +0000 (15:48 -0400)]
plugins/muc: Move locking to seperate module

10 years agoplugins/muc/mod_muc: Move room locking into hook
daurnimator [Wed, 2 Apr 2014 19:36:08 +0000 (15:36 -0400)]
plugins/muc/mod_muc: Move room locking into hook

10 years agoplugins/muc/muc.lib: Move description functions out to own file
daurnimator [Wed, 2 Apr 2014 19:14:52 +0000 (15:14 -0400)]
plugins/muc/muc.lib: Move description functions out to own file

10 years agoMerge 0.10->trunk
Matthew Wild [Wed, 2 Apr 2014 16:42:22 +0000 (17:42 +0100)]
Merge 0.10->trunk

10 years agoMerge 0.9->0.10
Matthew Wild [Wed, 2 Apr 2014 16:41:38 +0000 (17:41 +0100)]
Merge 0.9->0.10

10 years agoplugins/muc/muc.lib: Modify muc-config-submitted to keep a list of status codes inste...
daurnimator [Wed, 2 Apr 2014 15:35:00 +0000 (11:35 -0400)]
plugins/muc/muc.lib: Modify muc-config-submitted to keep a list of status codes instead of fields changed

10 years agoutil.xmppstream: Also disable CharacterData merging after stream restarts
Matthew Wild [Wed, 2 Apr 2014 13:31:19 +0000 (14:31 +0100)]
util.xmppstream: Also disable CharacterData merging after stream restarts

10 years agoutil.xmppstream: Disable LuaExpat's buffering (if possible)
Matthew Wild [Wed, 2 Apr 2014 10:05:41 +0000 (11:05 +0100)]
util.xmppstream: Disable LuaExpat's buffering (if possible)

10 years agoplugins/muc/muc.lib: Refactor out process_form into hooks
daurnimator [Tue, 1 Apr 2014 21:45:03 +0000 (17:45 -0400)]
plugins/muc/muc.lib: Refactor out process_form into hooks

10 years agoplugins/muc/muc.lib: Move default config layout into hooks
daurnimator [Tue, 1 Apr 2014 21:10:01 +0000 (17:10 -0400)]
plugins/muc/muc.lib: Move default config layout into hooks

10 years agoplugins/muc/muc.lib: Split up get_disco_info into events
daurnimator [Tue, 1 Apr 2014 19:41:44 +0000 (15:41 -0400)]
plugins/muc/muc.lib: Split up get_disco_info into events

This was done so we can split off functionality to other files later (e.g. plugins/muc/password)

10 years agoTagging 0.9.4
Matthew Wild [Tue, 1 Apr 2014 15:50:15 +0000 (16:50 +0100)]
Tagging 0.9.4

10 years agoMerge
Matthew Wild [Tue, 1 Apr 2014 15:03:21 +0000 (16:03 +0100)]
Merge

10 years agoMUC: Fixed traceback when a JID not in a room requested a role change for an occupant.
Waqas Hussain [Tue, 1 Apr 2014 14:02:58 +0000 (10:02 -0400)]
MUC: Fixed traceback when a JID not in a room requested a role change for an occupant.

10 years agoMerge
Matthew Wild [Tue, 1 Apr 2014 14:02:36 +0000 (15:02 +0100)]
Merge

10 years agonet.server_{select,event}: Add compat code for supporting the same client port API...
Kim Alvefur [Tue, 1 Apr 2014 13:26:40 +0000 (15:26 +0200)]
net.server_{select,event}: Add compat code for supporting the same client port API on connections

10 years agoplugins/muc/muc.lib: Add muc-room-locked event
daurnimator [Mon, 31 Mar 2014 18:46:59 +0000 (14:46 -0400)]
plugins/muc/muc.lib: Add muc-room-locked event

10 years agoplugins/muc/muc.lib: restrict invitations in members only rooms to admins
daurnimator [Mon, 31 Mar 2014 18:45:42 +0000 (14:45 -0400)]
plugins/muc/muc.lib: restrict invitations in members only rooms to admins

10 years agoplugins/muc/muc.lib: Don't try and get occupant jids for annotating invite affiliatio...
daurnimator [Mon, 31 Mar 2014 18:44:52 +0000 (14:44 -0400)]
plugins/muc/muc.lib: Don't try and get occupant jids for annotating invite affiliation changes

10 years agoplugins/muc/muc.lib: Update declines to be more like invites
daurnimator [Mon, 31 Mar 2014 18:06:35 +0000 (14:06 -0400)]
plugins/muc/muc.lib: Update declines to be more like invites

10 years agoplugins/muc/muc.lib: Add pre-invite event. Move role check to it
daurnimator [Mon, 31 Mar 2014 17:54:27 +0000 (13:54 -0400)]
plugins/muc/muc.lib: Add pre-invite event. Move role check to it

10 years agoBacked out changeset a5b5bce71a11
Kim Alvefur [Mon, 31 Mar 2014 17:38:06 +0000 (19:38 +0200)]
Backed out changeset a5b5bce71a11

10 years agoplugins/muc/muc.lib: Tidy up muc-invite event.
daurnimator [Mon, 31 Mar 2014 16:31:15 +0000 (12:31 -0400)]
plugins/muc/muc.lib: Tidy up muc-invite event.

  - Send inside of the actual handle_invite function
  - Move password, compat and body tagging into event handlers

10 years agoplugins/muc/muc.lib: Remove top level pre-join event. Assign event priorities for...
daurnimator [Mon, 31 Mar 2014 16:21:43 +0000 (12:21 -0400)]
plugins/muc/muc.lib: Remove top level pre-join event. Assign event priorities for other handlers

10 years agoMakefile: Change sed regex to be compatible with FreeBSD's odd sed, and change /...
Matthew Wild [Sun, 30 Mar 2014 08:16:27 +0000 (09:16 +0100)]
Makefile: Change sed regex to be compatible with FreeBSD's odd sed, and change / to | to allow paths to be used in RUNWITH (thanks Ben)

10 years agoutil.dependencies: Log error when LuaExpat is not capable of enforcing stanza size...
Matthew Wild [Sun, 30 Mar 2014 08:15:28 +0000 (09:15 +0100)]
util.dependencies: Log error when LuaExpat is not capable of enforcing stanza size limits

10 years agoutil.xmppstream: Implement stanza size limiting, default limit 10MB
Matthew Wild [Sun, 30 Mar 2014 08:14:39 +0000 (09:14 +0100)]
util.xmppstream: Implement stanza size limiting, default limit 10MB

10 years agoportmanager: Make maximum read size configurable, and default to 4KB
Matthew Wild [Sun, 30 Mar 2014 07:44:55 +0000 (08:44 +0100)]
portmanager: Make maximum read size configurable, and default to 4KB

10 years agoplugins/muc/muc.lib: Use occupant methods where possible
daurnimator [Sat, 29 Mar 2014 00:28:20 +0000 (20:28 -0400)]
plugins/muc/muc.lib: Use occupant methods where possible

10 years agoplugins/muc/muc.lib: Subjects get sent even if empty.
daurnimator [Sat, 29 Mar 2014 00:25:10 +0000 (20:25 -0400)]
plugins/muc/muc.lib: Subjects get sent even if empty.

10 years agoplugins/muc/muc.lib: Fix typo (moderators vs moderator)
daurnimator [Fri, 28 Mar 2014 22:47:35 +0000 (18:47 -0400)]
plugins/muc/muc.lib: Fix typo (moderators vs moderator)

10 years agoplugins/muc/muc.lib: nick change unavailables should be from original occupant jid
daurnimator [Fri, 28 Mar 2014 22:33:57 +0000 (18:33 -0400)]
plugins/muc/muc.lib: nick change unavailables should be from original occupant jid

10 years agoplugins/muc/muc.lib: Status codes should be inside of x element
daurnimator [Fri, 28 Mar 2014 22:33:38 +0000 (18:33 -0400)]
plugins/muc/muc.lib: Status codes should be inside of x element

10 years agoplugins/muc/muc.lib: Improve set affiliation logic;
daurnimator [Fri, 28 Mar 2014 21:58:25 +0000 (17:58 -0400)]
plugins/muc/muc.lib: Improve set affiliation logic;

  - Each affiliation and role is now ranked
    - Changes up in affiliation will not downgrade your role
  - Now sends a new set of presences if you gained moderator in a semi-anonymous room.
  - Better input validation; matches closer with ':set_role'
  - Don't short circuit; as if user has non-default role they will not get updated

10 years agoplugins/muc/muc.lib: Smarter validation in set_affiliation
daurnimator [Fri, 28 Mar 2014 18:15:18 +0000 (14:15 -0400)]
plugins/muc/muc.lib: Smarter validation in set_affiliation

10 years agoplugins/muc/muc.lib: Fix anonymous check in `send_occupant_list`
daurnimator [Fri, 28 Mar 2014 17:34:46 +0000 (13:34 -0400)]
plugins/muc/muc.lib: Fix anonymous check in `send_occupant_list`

10 years agoplugins/muc/muc.lib: Allow `:send_occupant_list` to have no filter
daurnimator [Fri, 28 Mar 2014 17:14:33 +0000 (13:14 -0400)]
plugins/muc/muc.lib: Allow `:send_occupant_list` to have no filter