prosody.git
9 years agoMerge 0.10->trunk
Kim Alvefur [Sun, 10 Aug 2014 08:31:18 +0000 (10:31 +0200)]
Merge 0.10->trunk

9 years agomod_privacy: Remove, leave a log message about being replaced by mod_blocklist and...
Kim Alvefur [Sun, 10 Aug 2014 08:29:38 +0000 (10:29 +0200)]
mod_privacy: Remove, leave a log message about being replaced by mod_blocklist and load that instead

9 years agoprosody.cfg.lua.dist: Replace mod_privacy with mod_blocklist in the default config
Kim Alvefur [Sun, 10 Aug 2014 08:27:20 +0000 (10:27 +0200)]
prosody.cfg.lua.dist: Replace mod_privacy with mod_blocklist in the default config

9 years agomod_blocklist: XEP-0191 implementation written for speed and independence from mod_pr...
Kim Alvefur [Sun, 10 Aug 2014 08:27:00 +0000 (10:27 +0200)]
mod_blocklist: XEP-0191 implementation written for speed and independence from mod_privacy

9 years agomod_private: Use map store
Kim Alvefur [Sat, 9 Aug 2014 19:52:32 +0000 (21:52 +0200)]
mod_private: Use map store

9 years agoMerge 0.10->trunk
Kim Alvefur [Sat, 9 Aug 2014 19:48:52 +0000 (21:48 +0200)]
Merge 0.10->trunk

9 years agomod_private: Cleanup and more tailcalls
Kim Alvefur [Sat, 9 Aug 2014 19:48:11 +0000 (21:48 +0200)]
mod_private: Cleanup and more tailcalls

9 years agostoragemanager: Fix map store shim if store is empty
Kim Alvefur [Fri, 8 Aug 2014 10:38:35 +0000 (12:38 +0200)]
storagemanager: Fix map store shim if store is empty

9 years agoplugins/mod_storage_sql2: Return correct arguments from map_store operations
daurnimator [Thu, 7 Aug 2014 22:34:51 +0000 (18:34 -0400)]
plugins/mod_storage_sql2: Return correct arguments from map_store operations

9 years agoplugins/muc/mod_muc: persistent rooms keyval store needs username as nil
daurnimator [Thu, 7 Aug 2014 22:03:31 +0000 (18:03 -0400)]
plugins/muc/mod_muc: persistent rooms keyval store needs username as nil

9 years agoplugins/muc/mod_muc: Use map store for room persistence
daurnimator [Thu, 7 Aug 2014 16:35:12 +0000 (12:35 -0400)]
plugins/muc/mod_muc: Use map store for room persistence

9 years agoplugins/muc/mod_muc: Remove unused import
daurnimator [Thu, 7 Aug 2014 16:34:51 +0000 (12:34 -0400)]
plugins/muc/mod_muc: Remove unused import

9 years agoplugins/mod_storage_sql2: Add map store support
daurnimator [Thu, 7 Aug 2014 16:16:16 +0000 (12:16 -0400)]
plugins/mod_storage_sql2: Add map store support

9 years agocore/storagemanager: When map store isn't available, fallback to keyval store
daurnimator [Thu, 7 Aug 2014 16:15:15 +0000 (12:15 -0400)]
core/storagemanager: When map store isn't available, fallback to keyval store

9 years agoutil.jid: Optimize bare
Kim Alvefur [Thu, 7 Aug 2014 15:43:28 +0000 (17:43 +0200)]
util.jid: Optimize bare

9 years agoutil.jid: Use existing join function in jid.prep
Kim Alvefur [Thu, 7 Aug 2014 15:35:11 +0000 (17:35 +0200)]
util.jid: Use existing join function in jid.prep

9 years agoutil.jid: Return early in join on invalid jids
Kim Alvefur [Thu, 7 Aug 2014 15:20:51 +0000 (17:20 +0200)]
util.jid: Return early in join on invalid jids

9 years agomod_muc: Import util.stanza into the config handler modules that need it. Fixes ...
Matthew Wild [Tue, 5 Aug 2014 08:55:08 +0000 (09:55 +0100)]
mod_muc: Import util.stanza into the config handler modules that need it. Fixes #432.

9 years agomod_muc: Fix use of undefined global. Fixes #431.
Matthew Wild [Tue, 5 Aug 2014 08:16:29 +0000 (09:16 +0100)]
mod_muc: Fix use of undefined global. Fixes #431.

9 years agoMerge 0.10->trunk
Matthew Wild [Thu, 31 Jul 2014 06:14:54 +0000 (07:14 +0100)]
Merge 0.10->trunk

9 years agoMerge 0.9->0.10
Matthew Wild [Thu, 31 Jul 2014 06:11:54 +0000 (07:11 +0100)]
Merge 0.9->0.10

9 years agoprosodyctl: Remove nonsensical warning
Matthew Wild [Thu, 31 Jul 2014 05:59:12 +0000 (06:59 +0100)]
prosodyctl: Remove nonsensical warning

9 years agoprosodyctl: Improve JID splitting and normalization for adduser/passwd/deluser
Matthew Wild [Thu, 31 Jul 2014 05:58:15 +0000 (06:58 +0100)]
prosodyctl: Improve JID splitting and normalization for adduser/passwd/deluser

9 years agoconfigmanager: nameprep VirtualHost and Component names
Matthew Wild [Thu, 31 Jul 2014 05:56:21 +0000 (06:56 +0100)]
configmanager: nameprep VirtualHost and Component names

9 years agoMerge 0.10->trunk
Kim Alvefur [Fri, 25 Jul 2014 19:16:52 +0000 (21:16 +0200)]
Merge 0.10->trunk

9 years agomod_s2s: Remove unused locals
Kim Alvefur [Fri, 25 Jul 2014 19:12:21 +0000 (21:12 +0200)]
mod_s2s: Remove unused locals

9 years agomod_s2s: Remove unused locals
Kim Alvefur [Fri, 25 Jul 2014 19:12:21 +0000 (21:12 +0200)]
mod_s2s: Remove unused locals

9 years agomod_s2s_auth_certs: Pick a logging function once and stick with it
Kim Alvefur [Fri, 25 Jul 2014 19:03:16 +0000 (21:03 +0200)]
mod_s2s_auth_certs: Pick a logging function once and stick with it

9 years agomod_s2s_auth_certs: Split PKIX based certificate checking from mod_s2s into new plugin
Kim Alvefur [Fri, 25 Jul 2014 18:41:54 +0000 (20:41 +0200)]
mod_s2s_auth_certs: Split PKIX based certificate checking from mod_s2s into new plugin

9 years agomod_muc/muc.lib: Remove is_anonymous from event (fix for ec57067c1e0d)
Matthew Wild [Fri, 25 Jul 2014 17:34:43 +0000 (18:34 +0100)]
mod_muc/muc.lib: Remove is_anonymous from event (fix for ec57067c1e0d)

9 years agomod_muc/muc.lib: Pass all info to muc-broadcast-presence handlers that would be requi...
Matthew Wild [Fri, 25 Jul 2014 17:32:15 +0000 (18:32 +0100)]
mod_muc/muc.lib: Pass all info to muc-broadcast-presence handlers that would be required to use room:build_item_list() - useful for plugins

9 years agoMerge 0.10->trunk
Matthew Wild [Fri, 25 Jul 2014 12:54:47 +0000 (13:54 +0100)]
Merge 0.10->trunk

9 years agoMerge 0.9->0.10
Matthew Wild [Fri, 25 Jul 2014 12:54:27 +0000 (13:54 +0100)]
Merge 0.9->0.10

9 years agonet.server_select/event: Switch sender mode to *a when reading, to make sure we get...
Matthew Wild [Fri, 25 Jul 2014 12:53:39 +0000 (13:53 +0100)]
net.server_select/event: Switch sender mode to *a when reading, to make sure we get all available data

9 years agoMerge 0.10->trunk
Matthew Wild [Fri, 25 Jul 2014 12:02:46 +0000 (13:02 +0100)]
Merge 0.10->trunk

9 years agoMerge 0.9->0.10
Matthew Wild [Fri, 25 Jul 2014 12:01:57 +0000 (13:01 +0100)]
Merge 0.9->0.10

9 years agomod_admin_telnet: Fix dns:(add,set)nameservers()
Kim Alvefur [Fri, 25 Jul 2014 11:59:17 +0000 (13:59 +0200)]
mod_admin_telnet: Fix dns:(add,set)nameservers()

9 years agonet.dns: Remove unused obsolete code
Matthew Wild [Fri, 25 Jul 2014 11:54:31 +0000 (12:54 +0100)]
net.dns: Remove unused obsolete code

9 years agonet.dns: Ensure all pending requests get notified of a timeout when looking up a...
Matthew Wild [Fri, 25 Jul 2014 11:08:07 +0000 (12:08 +0100)]
net.dns: Ensure all pending requests get notified of a timeout when looking up a record (fix for d122420542fb)

9 years agoutil.vcard: Add support for uri types in vcard4
Kim Alvefur [Wed, 9 Jul 2014 06:23:16 +0000 (08:23 +0200)]
util.vcard: Add support for uri types in vcard4

9 years agoMerge 0.10->trunk
Kim Alvefur [Wed, 9 Jul 2014 00:06:37 +0000 (02:06 +0200)]
Merge 0.10->trunk

9 years agomod_dialback: Respect dwd config option
Kim Alvefur [Wed, 9 Jul 2014 00:04:16 +0000 (02:04 +0200)]
mod_dialback: Respect dwd config option

9 years agomod_pep_plus: Only broadcast newly added subscriptions
Kim Alvefur [Tue, 8 Jul 2014 05:32:45 +0000 (07:32 +0200)]
mod_pep_plus: Only broadcast newly added subscriptions

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

10 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

10 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

10 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

10 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)

10 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

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

10 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

10 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

10 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

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

10 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

10 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