prosody.git
9 years agoMerge 0.10->trunk
Kim Alvefur [Fri, 4 Jul 2014 21:05:27 +0000 (23:05 +0200)]
Merge 0.10->trunk

9 years agomod_dialback.lua: Only check certificates on secure connections
Kim Alvefur [Fri, 4 Jul 2014 21:04:56 +0000 (23:04 +0200)]
mod_dialback.lua: Only check certificates on secure connections

9 years agomod_lastactivity, mod_legacyauth, mod_presence, mod_saslauth, mod_tls: Use the newer...
Kim Alvefur [Fri, 4 Jul 2014 20:52:34 +0000 (22:52 +0200)]
mod_lastactivity, mod_legacyauth, mod_presence, mod_saslauth, mod_tls: Use the newer stanza:get_child APIs and optimize away some table lookups

9 years agomod_dialback: Short-circuit dialback auth if certificate is considered valid
Kim Alvefur [Fri, 4 Jul 2014 19:48:25 +0000 (21:48 +0200)]
mod_dialback: Short-circuit dialback auth if certificate is considered valid

9 years agomod_dialback: Keep the same dialback secret across module reloads
Kim Alvefur [Thu, 3 Jul 2014 13:38:53 +0000 (15:38 +0200)]
mod_dialback: Keep the same dialback secret across module reloads

10 years agoMerge 0.10->trunk
Kim Alvefur [Mon, 30 Jun 2014 11:12:16 +0000 (13:12 +0200)]
Merge 0.10->trunk

10 years agoMerge 0.9->0.10
Kim Alvefur [Mon, 30 Jun 2014 11:11:01 +0000 (13:11 +0200)]
Merge 0.9->0.10

10 years agonet.dns: Fix duplicated cache insertions by limiting outstanding queries per name...
Kim Alvefur [Mon, 30 Jun 2014 10:45:53 +0000 (12:45 +0200)]
net.dns: Fix duplicated cache insertions by limiting outstanding queries per name to one

10 years agonet/server_*: Fix addclient: LuaSocket 3.0-rc1 sometimes returns EALREADY instead...
daurnimator [Wed, 25 Jun 2014 16:15:00 +0000 (12:15 -0400)]
net/server_*: Fix addclient: LuaSocket 3.0-rc1 sometimes returns EALREADY instead of EINPROGRESS when the dns lookup has multiple results

10 years agonet.adns: Add missing local declaration
Kim Alvefur [Wed, 25 Jun 2014 13:33:49 +0000 (15:33 +0200)]
net.adns: Add missing local declaration

10 years agoMerge 0.10->trunk
Kim Alvefur [Sat, 21 Jun 2014 13:05:52 +0000 (15:05 +0200)]
Merge 0.10->trunk

10 years agoMerge 0.9->0.10
Kim Alvefur [Sat, 21 Jun 2014 13:05:21 +0000 (15:05 +0200)]
Merge 0.9->0.10

10 years agomod_storage_{none,internal,sql}: Return error for unsupported (everything but keyval...
Kim Alvefur [Fri, 20 Jun 2014 14:22:23 +0000 (16:22 +0200)]
mod_storage_{none,internal,sql}: Return error for unsupported (everything but keyval) store types

10 years agomod_storage_sql2: Don't ignore failure in keyval_store:get() (thanks daurnimator)
Kim Alvefur [Fri, 20 Jun 2014 14:16:33 +0000 (16:16 +0200)]
mod_storage_sql2: Don't ignore failure in keyval_store:get() (thanks daurnimator)

10 years agomod_presence: Fire a presence/initial event on initial presence
Kim Alvefur [Fri, 20 Jun 2014 14:10:04 +0000 (16:10 +0200)]
mod_presence: Fire a presence/initial event on initial presence

10 years agoplugins/muc/muc: Fire broadcast presences event before creating full/anon presences
daurnimator [Tue, 17 Jun 2014 19:27:00 +0000 (15:27 -0400)]
plugins/muc/muc: Fire broadcast presences event before creating full/anon presences

10 years agoplugins/muc: Fix use of incorrect event on occupant join
daurnimator [Tue, 17 Jun 2014 19:18:43 +0000 (15:18 -0400)]
plugins/muc: Fix use of incorrect event on occupant join

10 years agotools/ejabberd2prosody.lua: Fix JID building, node-less jids became @hostname in...
Kim Alvefur [Tue, 17 Jun 2014 09:01:51 +0000 (11:01 +0200)]
tools/ejabberd2prosody.lua: Fix JID building, node-less jids became @hostname in some cases

10 years agoplugins/muc/mod_muc: fix wrong event for persistence
daurnimator [Wed, 11 Jun 2014 21:54:23 +0000 (17:54 -0400)]
plugins/muc/mod_muc: fix wrong event for persistence

10 years agoplugins/muc/muc.lib: Deliver declines to in-room jids correctly
daurnimator [Wed, 11 Jun 2014 18:59:59 +0000 (14:59 -0400)]
plugins/muc/muc.lib: Deliver declines to in-room jids correctly

10 years agoplugins/muc/muc.lib: Don't add invite/decline bodies if they already have one
daurnimator [Fri, 6 Jun 2014 18:34:01 +0000 (14:34 -0400)]
plugins/muc/muc.lib: Don't add invite/decline bodies if they already have one

10 years agoplugins/muc/muc.lib: Use original decline as template for medated decline
daurnimator [Fri, 6 Jun 2014 18:33:43 +0000 (14:33 -0400)]
plugins/muc/muc.lib: Use original decline as template for medated decline

10 years agoplugins/muc/muc: When forwarding mediated invites; use filtered version of original...
daurnimator [Thu, 5 Jun 2014 21:08:05 +0000 (17:08 -0400)]
plugins/muc/muc: When forwarding mediated invites; use filtered version of original invite instead of new object

10 years agoplugins/muc: Move 'x' filtering from occupant to util
daurnimator [Thu, 5 Jun 2014 21:07:14 +0000 (17:07 -0400)]
plugins/muc: Move 'x' filtering from occupant to util

10 years agomod_admin_telnet: Update muc:room(jid) and muc:list(host) to use the new MUC API
Waqas Hussain [Thu, 5 Jun 2014 21:15:04 +0000 (17:15 -0400)]
mod_admin_telnet: Update muc:room(jid) and muc:list(host) to use the new MUC API

10 years agoplugins/muc/muc.lib: Fix incorrect whois logic (thanks mva)
daurnimator [Sun, 1 Jun 2014 19:40:04 +0000 (15:40 -0400)]
plugins/muc/muc.lib: Fix incorrect whois logic (thanks mva)

10 years agoplugins/muc/muc.lib: Fix whois check when broadcasting occupant presence
Waqas Hussain [Sun, 1 Jun 2014 08:42:55 +0000 (04:42 -0400)]
plugins/muc/muc.lib: Fix whois check when broadcasting occupant presence

10 years agoMerge with daurnimator
Waqas Hussain [Fri, 30 May 2014 22:31:26 +0000 (18:31 -0400)]
Merge with daurnimator

10 years agoplugins/muc/muc.lib: Fire event for presence broadcast
daurnimator [Thu, 29 May 2014 17:27:41 +0000 (13:27 -0400)]
plugins/muc/muc.lib: Fire event for presence broadcast

10 years agoutil.vcard: Add missing local declaration
Kim Alvefur [Wed, 28 May 2014 20:09:32 +0000 (22:09 +0200)]
util.vcard: Add missing local declaration

10 years agomod_pep_plus: Expose get_pep_service()
Kim Alvefur [Wed, 28 May 2014 19:52:57 +0000 (21:52 +0200)]
mod_pep_plus: Expose get_pep_service()

10 years agoutil.vcard: Add support for converting to vcard4
Kim Alvefur [Wed, 28 May 2014 19:11:02 +0000 (21:11 +0200)]
util.vcard: Add support for converting to vcard4

10 years agoutil.vcard: Library for parsing vCards
Kim Alvefur [Wed, 28 May 2014 18:12:13 +0000 (20:12 +0200)]
util.vcard: Library for parsing vCards

10 years agoMerge 0.10->trunk
Matthew Wild [Wed, 28 May 2014 11:44:50 +0000 (12:44 +0100)]
Merge 0.10->trunk

10 years agomod_admin_telnet: Add command to list MUC rooms
Matthew Wild [Wed, 28 May 2014 11:43:34 +0000 (12:43 +0100)]
mod_admin_telnet: Add command to list MUC rooms

10 years agomod_s2s: Fire a 's2s-created' event when new s2s connections are initialized
Kim Alvefur [Sat, 24 May 2014 09:17:26 +0000 (11:17 +0200)]
mod_s2s: Fire a 's2s-created' event when new s2s connections are initialized

10 years agoMerge 0.10->trunk
Kim Alvefur [Fri, 23 May 2014 23:27:09 +0000 (01:27 +0200)]
Merge 0.10->trunk

10 years agoMerge with daurnimator
Matthew Wild [Fri, 23 May 2014 19:37:16 +0000 (20:37 +0100)]
Merge with daurnimator

10 years agomod_s2s: Remove redundant setting of session.direction
Kim Alvefur [Thu, 22 May 2014 20:49:43 +0000 (22:49 +0200)]
mod_s2s: Remove redundant setting of session.direction

10 years agomod_s2s: Move filter initialization to common place
Kim Alvefur [Thu, 22 May 2014 20:48:06 +0000 (22:48 +0200)]
mod_s2s: Move filter initialization to common place

10 years agomod_s2s: Decide on log function once
Kim Alvefur [Thu, 22 May 2014 20:45:58 +0000 (22:45 +0200)]
mod_s2s: Decide on log function once

10 years agohostmanager, mod_dialback: Move generation of dialback secret out of core
Kim Alvefur [Thu, 22 May 2014 13:21:22 +0000 (15:21 +0200)]
hostmanager, mod_dialback: Move generation of dialback secret out of core

9 years agoMerge 0.9->0.10
Kim Alvefur [Fri, 4 Jul 2014 13:54:37 +0000 (15:54 +0200)]
Merge 0.9->0.10

9 years agomod_register: get_child_text! (thanks Lloyd)
Kim Alvefur [Thu, 3 Jul 2014 15:53:24 +0000 (17:53 +0200)]
mod_register: get_child_text! (thanks Lloyd)

9 years agomod_tls: Simplify and use new ssl config merging in certmanager
Kim Alvefur [Thu, 3 Jul 2014 13:35:45 +0000 (15:35 +0200)]
mod_tls: Simplify and use new ssl config merging in certmanager

9 years agocore.portmanager: Simplify and take advantage of new ssl config merging in certmanager
Kim Alvefur [Thu, 3 Jul 2014 13:33:11 +0000 (15:33 +0200)]
core.portmanager: Simplify and take advantage of new ssl config merging in certmanager

9 years agocore.certmanager: Make create_context() support an arbitrary number of option sets...
Kim Alvefur [Thu, 3 Jul 2014 13:32:26 +0000 (15:32 +0200)]
core.certmanager: Make create_context() support an arbitrary number of option sets, merging all

9 years agocore.certmanager: Use util.sslconfig
Kim Alvefur [Thu, 3 Jul 2014 13:31:12 +0000 (15:31 +0200)]
core.certmanager: Use util.sslconfig

9 years agoutil.sslconfig: Add lib to deal with LuaSec SSL context configs
Kim Alvefur [Thu, 3 Jul 2014 13:27:49 +0000 (15:27 +0200)]
util.sslconfig: Add lib to deal with LuaSec SSL context configs

9 years agomod_presence: Move presence/initial event to correct place so it actually fires
Kim Alvefur [Thu, 3 Jul 2014 09:54:50 +0000 (11:54 +0200)]
mod_presence: Move presence/initial event to correct place so it actually fires

10 years agoplugins/muc/muc.lib: Even unavailable session need to be routed to sometimes (e.g...
daurnimator [Wed, 21 May 2014 17:19:57 +0000 (13:19 -0400)]
plugins/muc/muc.lib: Even unavailable session need to be routed to sometimes (e.g. their own leave)

10 years agoplugins/muc/muc: Only set role to nil if it's the last session to leave
daurnimator [Wed, 21 May 2014 17:11:00 +0000 (13:11 -0400)]
plugins/muc/muc: Only set role to nil if it's the last session to leave

10 years agoplugins/muc/occupant: Check for type == nil rather than type ~= unavailable
daurnimator [Mon, 19 May 2014 17:47:28 +0000 (13:47 -0400)]
plugins/muc/occupant: Check for type == nil rather than type ~= unavailable

10 years agoplugins/muc/muc: Better check for live sessions
daurnimator [Mon, 19 May 2014 17:40:54 +0000 (13:40 -0400)]
plugins/muc/muc: Better check for live sessions

10 years agoplugins/muc/muc: Always send occupant list to joining sessions
daurnimator [Mon, 19 May 2014 17:40:24 +0000 (13:40 -0400)]
plugins/muc/muc: Always send occupant list to joining sessions

10 years agoplugins/muc/mod_muc: Get rid of room global; use module:shared to get it
daurnimator [Mon, 19 May 2014 17:39:45 +0000 (13:39 -0400)]
plugins/muc/mod_muc: Get rid of room global; use module:shared to get it

10 years agoMerge with daurnimator
Matthew Wild [Sat, 17 May 2014 17:17:34 +0000 (18:17 +0100)]
Merge with daurnimator

10 years agomod_admin_telnet: Remove dead code
Kim Alvefur [Sun, 11 May 2014 23:16:17 +0000 (01:16 +0200)]
mod_admin_telnet: Remove dead code

10 years agomod_admin_telnet: Show which hosts are components and what type of component in host...
Kim Alvefur [Sun, 11 May 2014 23:07:40 +0000 (01:07 +0200)]
mod_admin_telnet: Show which hosts are components and what type of component in host:list()

10 years agomod_admin_telnet: Add c2s:show_tls(), behaves like s2s:show_tls()
Kim Alvefur [Sun, 11 May 2014 17:13:36 +0000 (19:13 +0200)]
mod_admin_telnet: Add c2s:show_tls(), behaves like s2s:show_tls()

10 years agomod_admin_telnet: Move generation of log tag for s2s:show() (adds it to c2s:show...
Kim Alvefur [Sun, 11 May 2014 17:12:03 +0000 (19:12 +0200)]
mod_admin_telnet: Move generation of log tag for s2s:show() (adds it to c2s:show() too)

10 years agomod_admin_telnet: Add s2s:show_tls() for showing ciphers used on s2s connections
Kim Alvefur [Sun, 11 May 2014 16:51:08 +0000 (18:51 +0200)]
mod_admin_telnet: Add s2s:show_tls() for showing ciphers used on s2s connections

10 years agomod_admin_telnet: Move extraction of c2s presence info into session_flags()
Kim Alvefur [Sun, 11 May 2014 17:03:23 +0000 (19:03 +0200)]
mod_admin_telnet: Move extraction of c2s presence info into session_flags()

10 years agomod_admin_telnet: Split (secure) into (authenticated) + (secure)
Kim Alvefur [Sun, 11 May 2014 16:28:00 +0000 (18:28 +0200)]
mod_admin_telnet: Split (secure) into (authenticated) + (secure)

10 years agomod_admin_telnet: Send NUL byte as keepalive on read timeouts
Kim Alvefur [Sun, 11 May 2014 16:22:17 +0000 (18:22 +0200)]
mod_admin_telnet: Send NUL byte as keepalive on read timeouts

10 years agomod_muc/muc.lib: Fix parameters to send_history() (thanks Peter Villeneuve)
Matthew Wild [Sat, 10 May 2014 20:30:00 +0000 (21:30 +0100)]
mod_muc/muc.lib: Fix parameters to send_history() (thanks Peter Villeneuve)

10 years agoMerge 0.10->trunk
Kim Alvefur [Sun, 11 May 2014 23:18:27 +0000 (01:18 +0200)]
Merge 0.10->trunk

10 years agomod_c2s: Fix traceback if c2s stream sent to component
Kim Alvefur [Sat, 10 May 2014 00:12:51 +0000 (02:12 +0200)]
mod_c2s: Fix traceback if c2s stream sent to component

10 years agoMerge 0.10->trunk
Kim Alvefur [Fri, 9 May 2014 21:35:54 +0000 (23:35 +0200)]
Merge 0.10->trunk

10 years agoMerge 0.9->0.10
Kim Alvefur [Fri, 9 May 2014 21:28:09 +0000 (23:28 +0200)]
Merge 0.9->0.10

10 years agoconfigmanager: Delay importing LuaFileSystem until needed by an Include line
Kim Alvefur [Fri, 9 May 2014 17:59:49 +0000 (19:59 +0200)]
configmanager: Delay importing LuaFileSystem until needed by an Include line

10 years agocore.certmanager, core.moduleapi, mod_storage_sql, mod_storage_sql2: Import from...
Kim Alvefur [Fri, 9 May 2014 17:35:29 +0000 (19:35 +0200)]
core.certmanager, core.moduleapi, mod_storage_sql, mod_storage_sql2: Import from util.paths

10 years agocore.configmanager: Move path utility functions into util.paths
Kim Alvefur [Fri, 9 May 2014 17:34:35 +0000 (19:34 +0200)]
core.configmanager: Move path utility functions into util.paths

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 agoMerge 0.10->trunk
Kim Alvefur [Mon, 5 May 2014 22:37:08 +0000 (00:37 +0200)]
Merge 0.10->trunk

10 years agoprosodyctl: Check that there is at least one enabled VirtualHost (or Component) defined
Kim Alvefur [Fri, 2 May 2014 06:56:03 +0000 (08:56 +0200)]
prosodyctl: Check that there is at least one enabled VirtualHost (or Component) defined

10 years agoprosodyctl: Use correct variable in check certs
Kim Alvefur [Fri, 2 May 2014 06:27:29 +0000 (08:27 +0200)]
prosodyctl: Use correct variable in check certs

10 years agoprosodyctl: Check for deprecated config options
Kim Alvefur [Fri, 2 May 2014 06:21:56 +0000 (08:21 +0200)]
prosodyctl: Check for deprecated config options

10 years agoprosodyctl: Add check that points out any disabled hosts
Kim Alvefur [Fri, 2 May 2014 06:16:26 +0000 (08:16 +0200)]
prosodyctl: Add check that points out any disabled hosts

10 years agoprosodyctl: Only perform checks on enabled hosts
Kim Alvefur [Fri, 2 May 2014 06:11:11 +0000 (08:11 +0200)]
prosodyctl: Only perform checks on enabled hosts

10 years agoplugins/muc/mod_muc: Place adhoc section into own scope
daurnimator [Wed, 30 Apr 2014 16:43:47 +0000 (12:43 -0400)]
plugins/muc/mod_muc: Place adhoc section into own scope

10 years agoplugins/muc/mod_muc: Don't use rooms object directory in adhoc section
daurnimator [Wed, 30 Apr 2014 16:43:04 +0000 (12:43 -0400)]
plugins/muc/mod_muc: Don't use rooms object directory in adhoc section

10 years agoplugins/muc/mod_muc.lua: Add "each_room" function to iterate over rooms (instead...
daurnimator [Wed, 30 Apr 2014 17:12:32 +0000 (13:12 -0400)]
plugins/muc/mod_muc.lua: Add "each_room" function to iterate over rooms (instead of accessing directly)

10 years agoplugins/muc/mod_muc: Remove attempt_room_creation and create_room function. Instead...
daurnimator [Tue, 29 Apr 2014 23:35:25 +0000 (19:35 -0400)]
plugins/muc/mod_muc: Remove attempt_room_creation and create_room function. Instead have a 'track_room' function called from the end of the pre-create hook, and just create an un-tracked room object when we get a presence

10 years agoplugins/muc/mod_muc: Move `restrict_room_creation` into own area. now uses pre-create...
daurnimator [Tue, 29 Apr 2014 23:00:45 +0000 (19:00 -0400)]
plugins/muc/mod_muc: Move `restrict_room_creation` into own area. now uses pre-create hook

10 years agoplugins/muc/lock.lib: lock inside of pre-create instead of 'created'
daurnimator [Tue, 29 Apr 2014 22:50:30 +0000 (18:50 -0400)]
plugins/muc/lock.lib: lock inside of pre-create instead of 'created'

10 years agoplugins/muc/mod_muc: Use module:shared instead of save/restore
daurnimator [Tue, 29 Apr 2014 21:18:14 +0000 (17:18 -0400)]
plugins/muc/mod_muc: Use module:shared instead of save/restore

10 years agoplugins/muc: Move 'module:get_option_number("max_history_messages")' from mod_muc...
daurnimator [Tue, 29 Apr 2014 19:13:06 +0000 (15:13 -0400)]
plugins/muc: Move 'module:get_option_number("max_history_messages")' from mod_muc into history lib; remove from muclib exports

10 years agoplugins/muc/mod_muc: Remove support for `host_session.muc`
daurnimator [Tue, 29 Apr 2014 18:50:13 +0000 (14:50 -0400)]
plugins/muc/mod_muc: Remove support for `host_session.muc`

10 years agoplugins/muc/mod_muc: Move room persistence to own block
daurnimator [Tue, 29 Apr 2014 18:24:50 +0000 (14:24 -0400)]
plugins/muc/mod_muc: Move room persistence to own block

10 years agoplugins/muc: Add room:has_occupant() method
daurnimator [Tue, 29 Apr 2014 16:54:04 +0000 (12:54 -0400)]
plugins/muc: Add room:has_occupant() method

10 years agoplugins/muc/mod_muc: No need to treat the host room specially
daurnimator [Mon, 28 Apr 2014 20:31:21 +0000 (16:31 -0400)]
plugins/muc/mod_muc: No need to treat the host room specially

10 years agoplugins/muc/mod_muc: Use get_option_string instead of get_option and checking
daurnimator [Mon, 28 Apr 2014 20:33:54 +0000 (16:33 -0400)]
plugins/muc/mod_muc: Use get_option_string instead of get_option and checking

10 years agoplugins/muc/mod_muc: Move affiliation monkey patch into own scope
daurnimator [Mon, 28 Apr 2014 20:30:53 +0000 (16:30 -0400)]
plugins/muc/mod_muc: Move affiliation monkey patch into own scope

10 years agoMerge 0.10->trunk
Kim Alvefur [Sat, 26 Apr 2014 23:02:54 +0000 (01:02 +0200)]
Merge 0.10->trunk

10 years agoMerge 0.9->0.10
Kim Alvefur [Sat, 26 Apr 2014 23:02:20 +0000 (01:02 +0200)]
Merge 0.9->0.10

10 years agoutil.x509: Remove unused imports
Kim Alvefur [Fri, 25 Apr 2014 00:47:09 +0000 (02:47 +0200)]
util.x509: Remove unused imports

10 years agoutil.pposix: Fix error reporting from really old Linux fallocate() that did not use...
Kim Alvefur [Fri, 25 Apr 2014 00:41:55 +0000 (02:41 +0200)]
util.pposix: Fix error reporting from really old Linux fallocate() that did not use errno for some reason (thanks pro)

10 years agoutil.pposix: Fix error reporting from posix_fallocate, it doesn't use errno (thanks...
Kim Alvefur [Thu, 24 Apr 2014 22:36:01 +0000 (00:36 +0200)]
util.pposix: Fix error reporting from posix_fallocate, it doesn't use errno (thanks pro)

10 years agoutil.x509: And functions for converting between DER and PEM
Kim Alvefur [Thu, 24 Apr 2014 21:38:47 +0000 (23:38 +0200)]
util.x509: And functions for converting between DER and PEM