]> granicus.if.org Git - ejabberd/log
ejabberd
6 years agoFix returning value from mod_vcard_ldap's search() callback
Evgeniy Khramtsov [Sun, 25 Mar 2018 07:53:46 +0000 (10:53 +0300)]
Fix returning value from mod_vcard_ldap's search() callback

Fixes #2335

6 years agoGet rid of 'fs' package dependency in mix 18.03
Christophe Romain [Fri, 23 Mar 2018 13:48:17 +0000 (14:48 +0100)]
Get rid of 'fs' package dependency in mix

6 years agoGet rid of 'fs' package dependency
Evgeniy Khramtsov [Fri, 23 Mar 2018 13:40:26 +0000 (16:40 +0300)]
Get rid of 'fs' package dependency

Certificates auto-reloading will be fixed later.
For now to reload certificates call `reload-config` ejabberd command.

6 years agoClarify the statement about mod_http_upload thumbnails
Evgeniy Khramtsov [Fri, 23 Mar 2018 13:19:13 +0000 (16:19 +0300)]
Clarify the statement about mod_http_upload thumbnails

6 years agoForce node config for bookmarks
Evgeniy Khramtsov [Fri, 23 Mar 2018 13:16:27 +0000 (16:16 +0300)]
Force node config for bookmarks

6 years agoSet empty least as a default for force_node_config
Evgeniy Khramtsov [Fri, 23 Mar 2018 13:09:18 +0000 (16:09 +0300)]
Set empty least as a default for force_node_config

6 years agoMove force_node_config defaults into ejabberd.yml.example
Evgeniy Khramtsov [Fri, 23 Mar 2018 13:08:12 +0000 (16:08 +0300)]
Move force_node_config defaults into ejabberd.yml.example

6 years agoUpdate mix deps
Paweł Chmielowski [Fri, 23 Mar 2018 12:27:58 +0000 (13:27 +0100)]
Update mix deps

6 years agoUpdate mix.exs version
Christophe Romain [Fri, 23 Mar 2018 11:56:17 +0000 (12:56 +0100)]
Update mix.exs version

6 years agoFetch 'registration_watchers' option from the correct module
Evgeniy Khramtsov [Fri, 23 Mar 2018 06:42:55 +0000 (09:42 +0300)]
Fetch 'registration_watchers' option from the correct module

Fixes #2337

6 years agoUpdate deps
Paweł Chmielowski [Thu, 22 Mar 2018 15:15:19 +0000 (16:15 +0100)]
Update deps

6 years agoRemove items of unregistered user (#2129)
Christophe Romain [Thu, 22 Mar 2018 10:59:24 +0000 (11:59 +0100)]
Remove items of unregistered user (#2129)

6 years agoAccept atoms in api_permission command lists and commands with numbers in them
Paweł Chmielowski [Wed, 21 Mar 2018 11:53:46 +0000 (12:53 +0100)]
Accept atoms in api_permission command lists and commands with numbers in them

6 years agoAdd option --enable-group=xxx (thanks to andreabenini)(#1429)
Badlop [Tue, 20 Mar 2018 22:37:42 +0000 (23:37 +0100)]
Add option --enable-group=xxx (thanks to andreabenini)(#1429)

6 years agoIf mod_last is disabled, return error instead of crashing (#2330)
Badlop [Tue, 20 Mar 2018 21:18:43 +0000 (22:18 +0100)]
If mod_last is disabled, return error instead of crashing (#2330)

6 years agoReport meaningful error when luerl is not available
Evgeniy Khramtsov [Mon, 19 Mar 2018 17:09:35 +0000 (20:09 +0300)]
Report meaningful error when luerl is not available

6 years agoSet -protocol() directive for mod_avatar
Evgeniy Khramtsov [Mon, 19 Mar 2018 16:23:15 +0000 (19:23 +0300)]
Set -protocol() directive for mod_avatar

6 years agoAvoid logging IP addresses in mod_register when it's not desired
Evgeniy Khramtsov [Mon, 19 Mar 2018 15:23:52 +0000 (18:23 +0300)]
Avoid logging IP addresses in mod_register when it's not desired

Fixes #2326

6 years agoApply some dirty hacks for mod_shared_roster
Evgeniy Khramtsov [Mon, 19 Mar 2018 09:32:43 +0000 (12:32 +0300)]
Apply some dirty hacks for mod_shared_roster

Probably this fixes #1846

6 years agoHardcode ACL rules used by ejabberd_web_admin
Evgeniy Khramtsov [Mon, 19 Mar 2018 09:29:07 +0000 (12:29 +0300)]
Hardcode ACL rules used by ejabberd_web_admin

6 years agoImprove result of XEP-0060 §6.5.9.12 (#2288)
Christophe Romain [Sat, 17 Mar 2018 09:55:14 +0000 (10:55 +0100)]
Improve result of XEP-0060 §6.5.9.12 (#2288)

Moving get_item result control to keep item-not-found on transaction
error when node does not exists

6 years agoFix result of XEP-0060 §6.5.9.12 (#2288)
Christophe Romain [Fri, 16 Mar 2018 16:48:42 +0000 (17:48 +0100)]
Fix result of XEP-0060 §6.5.9.12 (#2288)

6 years agoAdd transient notification condition (#2267)
Christophe Romain [Fri, 16 Mar 2018 16:26:51 +0000 (17:26 +0100)]
Add transient notification condition (#2267)

6 years agoRefactor publish_item conditions (#2267)
Christophe Romain [Fri, 16 Mar 2018 16:17:53 +0000 (17:17 +0100)]
Refactor publish_item conditions (#2267)

6 years agoFulfill all requirements of XEP-0398 v0.2.0
Evgeniy Khramtsov [Fri, 16 Mar 2018 09:10:57 +0000 (12:10 +0300)]
Fulfill all requirements of XEP-0398 v0.2.0

These include:
- Avoid rewriting vcard:x:update tags with empty <photo/> element
- Advertise "urn:xmpp:pep-vcard-conversion:0" feature

6 years agoAdd 'new_sql_schema' config option, --enable-new-sql-schema now sets its default...
Alexey Shchepin [Thu, 15 Mar 2018 14:55:05 +0000 (17:55 +0300)]
Add 'new_sql_schema' config option, --enable-new-sql-schema now sets its default value to true (#2239)

6 years agoGet rid of catch-all in mod_pubsub
Evgeniy Khramtsov [Tue, 13 Mar 2018 19:10:58 +0000 (22:10 +0300)]
Get rid of catch-all in mod_pubsub

6 years agoPreserve modules order
Evgeniy Khramtsov [Tue, 13 Mar 2018 15:18:53 +0000 (18:18 +0300)]
Preserve modules order

When modules for some virtual host are about to be started,
they are topologically sorted to preserve dependencies order.
We now keep this order for stop/reload functions to work properly.

6 years agoMerge pull request #2314 from oxpa/mod_admin_extra_hashes
badlop [Mon, 12 Mar 2018 14:20:53 +0000 (15:20 +0100)]
Merge pull request #2314 from oxpa/mod_admin_extra_hashes

allow using hashes from "crypto" applications in mod_admin_extra

6 years agoReturn errors in admin#add-user command response stanza (#2321)
Badlop [Mon, 12 Mar 2018 12:32:24 +0000 (13:32 +0100)]
Return errors in admin#add-user command response stanza (#2321)

6 years agoIntroduce force_node_config for mod_pubsub
Evgeniy Khramtsov [Sun, 11 Mar 2018 13:52:23 +0000 (16:52 +0300)]
Introduce force_node_config for mod_pubsub

The option can be used to override configuration options of a
particular PubSub node. Example:

mod_pubsub:
  ...
  force_node_config:
    "eu.siacs.conversations.axolotl.*":
      access_model: whitelist
    "*":
      persist_items: true

Fixes #2276

6 years agoAdd mod_fail2ban to the example config
Evgeniy Khramtsov [Sat, 10 Mar 2018 18:41:55 +0000 (21:41 +0300)]
Add mod_fail2ban to the example config

6 years agoStrip duplicates from module's options
Evgeniy Khramtsov [Wed, 7 Mar 2018 14:46:16 +0000 (17:46 +0300)]
Strip duplicates from module's options

6 years agomod_stream_mgmt: Clean up on timed out resumption
Holger Weiss [Tue, 6 Mar 2018 20:03:31 +0000 (21:03 +0100)]
mod_stream_mgmt: Clean up on timed out resumption

During resumption, make sure the old process and the corresponding
session entry are disposed also in the case where the call that queries
the old process times out.

6 years agoDon't forget to remove mgmt_force_enqueue flag
Evgeniy Khramtsov [Tue, 6 Mar 2018 13:18:03 +0000 (16:18 +0300)]
Don't forget to remove mgmt_force_enqueue flag

6 years agomod_push_keepalive: Preserve timeout on resumption
Holger Weiss [Mon, 5 Mar 2018 00:10:12 +0000 (01:10 +0100)]
mod_push_keepalive: Preserve timeout on resumption

Don't forget to carry over the original XEP-0198 resumption timeout
value while resuming.

6 years agoRevert "Support for default values in default_room_opts"
Evgeniy Khramtsov [Sat, 3 Mar 2018 18:08:05 +0000 (21:08 +0300)]
Revert "Support for default values in default_room_opts"

This reverts commit 5054a9933f29d6cc8a88486c624987b1b9f05b17.
The commit is plain wrong: similar options are not required to
be in pair.

6 years agoSimplify ejabberd_sup code
Evgeniy Khramtsov [Sat, 3 Mar 2018 15:05:12 +0000 (18:05 +0300)]
Simplify ejabberd_sup code

6 years agoallow using hashes from "crypto" applications in mod_admin_extra
oxpa [Fri, 2 Mar 2018 13:10:30 +0000 (04:10 -0900)]
allow using hashes from "crypto" applications in mod_admin_extra

6 years agoFix: mod_offline:store_offline_msg/1 expects a message, not list (#2312)
Badlop [Fri, 2 Mar 2018 10:43:50 +0000 (11:43 +0100)]
Fix: mod_offline:store_offline_msg/1 expects a message, not list (#2312)

6 years agoSimplify result of get_room_affiliation command (#2301)
Badlop [Thu, 1 Mar 2018 18:45:16 +0000 (19:45 +0100)]
Simplify result of get_room_affiliation command (#2301)

6 years agoMerge pull request #2301 from tsaqova/ejabberd_commands_get_room_affiliation
badlop [Thu, 1 Mar 2018 18:37:55 +0000 (19:37 +0100)]
Merge pull request #2301 from tsaqova/ejabberd_commands_get_room_affiliation

add ejabberd_command to get affiliation of a user in MUC room

6 years agoIncrease log level for DIGEST-MD5 FQDN
Evgeniy Khramtsov [Wed, 28 Feb 2018 18:43:43 +0000 (21:43 +0300)]
Increase log level for DIGEST-MD5 FQDN

SASL DIGEST-MD5 anyway deprecated anyway, so not point in
logging this. This is now logged in `debug` mode.

6 years agoMerge pull request #2311 from nosnilmot/validate-listen-opts
Evgeny Khramtsov [Wed, 28 Feb 2018 16:37:57 +0000 (19:37 +0300)]
Merge pull request #2311 from nosnilmot/validate-listen-opts

Validate additional listen opts

6 years agoValidate additional listen opts
Stu Tomlinson [Wed, 28 Feb 2018 16:14:35 +0000 (16:14 +0000)]
Validate additional listen opts

The options "inet", "inet6" and "backlog" are valid listen options, but are
currently logged as errors (even though they do work):

2018-02-28 16:08:44.141 [error] <0.338.0>@ejabberd_listener:validate_module_option:630 unknown listen option 'backlog' for 'ejabberd_c2s' will be likely ignored, available options are: access, shaper, certfile, ciphers, dhfile, cafile, client_cafile, protocol_options, tls, tls_compression, starttls, starttls_required, tls_verify, zlib, max_fsm_queue

This adds the necessary validators so they are correctly recognized.

6 years agoadd ejabberd_command to get affiliation of a user in MUC room
Yusro Tsaqova [Sun, 25 Feb 2018 09:28:14 +0000 (16:28 +0700)]
add ejabberd_command to get affiliation of a user in MUC room

6 years agoSupport for default values in default_room_opts
Badlop [Mon, 26 Feb 2018 16:22:04 +0000 (17:22 +0100)]
Support for default values in default_room_opts

6 years agoUse length on fields in mysql indexes
Paweł Chmielowski [Mon, 26 Feb 2018 08:43:04 +0000 (09:43 +0100)]
Use length on fields in mysql indexes

6 years agoSimplify code for splitting auth string in cyrsasl
Paweł Chmielowski [Mon, 26 Feb 2018 08:36:56 +0000 (09:36 +0100)]
Simplify code for splitting auth string in cyrsasl

This may fix problem from issue #2296

6 years agoMerge pull request #2304 from weiss/run-auth-callbacks-earlier
Evgeny Khramtsov [Mon, 26 Feb 2018 06:04:32 +0000 (09:04 +0300)]
Merge pull request #2304 from weiss/run-auth-callbacks-earlier

Run SASL result callbacks earlier

6 years agoxmpp_stream_in: Run auth result callbacks earlier
Holger Weiss [Sun, 25 Feb 2018 23:06:35 +0000 (00:06 +0100)]
xmpp_stream_in: Run auth result callbacks earlier

Call Mod:handle_auth_success/4 and Mod:handle_auth_failure/4 before
sending the SASL response rather than afterwards.  This way, callbacks
can send a custom response and disconnect.

6 years agomod_stream_mgmt: Cope with exit during resumption
Holger Weiss [Sat, 24 Feb 2018 20:50:54 +0000 (21:50 +0100)]
mod_stream_mgmt: Cope with exit during resumption

Don't crash if the old process exits while it is queried for the session
state.

6 years agoMerge pull request #2299 from weiss/add-username-to-indexes
Evgeny Khramtsov [Sat, 24 Feb 2018 04:41:44 +0000 (07:41 +0300)]
Merge pull request #2299 from weiss/add-username-to-indexes

Add username to peer indexes for MAM lookups

6 years agosql/*: Add username to peer indexes
Holger Weiss [Fri, 23 Feb 2018 23:50:20 +0000 (00:50 +0100)]
sql/*: Add username to peer indexes

The username is available for all MAM queries in question, and adding it
to the indexes can improve the lookup performance significantly.

6 years agoMerge pull request #2297 from af8a524db1/move_make_rand_string
Evgeny Khramtsov [Fri, 23 Feb 2018 17:35:37 +0000 (20:35 +0300)]
Merge pull request #2297 from af8a524db1/move_make_rand_string

Move make_rand_string() to 'randoms' module

6 years agoMove make_rand_string() to 'randoms' module
Marc Schink [Fri, 23 Feb 2018 17:23:54 +0000 (18:23 +0100)]
Move make_rand_string() to 'randoms' module

6 years agomod_carboncopy: Apply cosmetic change
Holger Weiss [Wed, 21 Feb 2018 23:46:47 +0000 (00:46 +0100)]
mod_carboncopy: Apply cosmetic change

The xmpp:has_subtag/2 function returns a boolen() value, so it can be
used with the 'not' operator.

6 years agomod_carboncopy: Copy outgoing MUC PMs
Holger Weiss [Wed, 21 Feb 2018 23:40:09 +0000 (00:40 +0100)]
mod_carboncopy: Copy outgoing MUC PMs

Incoming MUC PMs aren't carbon-copied, as the MUC service usually forks
them.  However, don't suppress copying of outgoing PMs, where no such
forking takes place.

6 years agoMove some log messages to debug level
Evgeniy Khramtsov [Wed, 21 Feb 2018 14:12:50 +0000 (17:12 +0300)]
Move some log messages to debug level

6 years agoUse nicks in disco#items or disco#info report
Evgeniy Khramtsov [Wed, 21 Feb 2018 07:25:15 +0000 (10:25 +0300)]
Use nicks in disco#items or disco#info report

6 years agoAdd 'negotiation_timeout' to the known options list
Evgeniy Khramtsov [Tue, 20 Feb 2018 16:47:50 +0000 (19:47 +0300)]
Add 'negotiation_timeout' to the known options list

6 years agoIntroduce 'negotiation_timeout'
Evgeniy Khramtsov [Tue, 20 Feb 2018 08:38:00 +0000 (11:38 +0300)]
Introduce 'negotiation_timeout'

The option can be used to specify a period (in seconds) for a stream
negotiation to complete. If the timer fires, the stream is considered
as failed and the underlying connection gets closed. This is a global
option (you cannot set it per domain) and the default is 30 seconds.

6 years agomod_admin_extra: Fix srg_get_info with '@all@'
Holger Weiss [Mon, 19 Feb 2018 23:44:47 +0000 (00:44 +0100)]
mod_admin_extra: Fix srg_get_info with '@all@'

Don't let the srg_get_info command crash if the roster group has '@all@'
or the '@online@' users as members.

6 years agoDon't emit validator's warning if the module is not found
Evgeniy Khramtsov [Mon, 19 Feb 2018 19:07:09 +0000 (22:07 +0300)]
Don't emit validator's warning if the module is not found

6 years agoReplace ?MYLANG with connection's language wherever possible
Evgeniy Khramtsov [Mon, 19 Feb 2018 18:47:20 +0000 (21:47 +0300)]
Replace ?MYLANG with connection's language wherever possible

6 years agoPush blocking related IQs from bare JID
Evgeniy Khramtsov [Sun, 18 Feb 2018 14:58:51 +0000 (17:58 +0300)]
Push blocking related IQs from bare JID

Fixes #2287

6 years agoDon't inject node name inside "id" attribute
Evgeniy Khramtsov [Sun, 18 Feb 2018 08:54:40 +0000 (11:54 +0300)]
Don't inject node name inside "id" attribute

Fixes #2284

6 years agoDon't ask other nodes to invalidate cache when the key is not updated
Evgeniy Khramtsov [Sun, 18 Feb 2018 06:02:23 +0000 (09:02 +0300)]
Don't ask other nodes to invalidate cache when the key is not updated

6 years agoFix 'badmatch' crash
Evgeniy Khramtsov [Sat, 17 Feb 2018 17:06:50 +0000 (20:06 +0300)]
Fix 'badmatch' crash

The crash was introduced in 4b012a99d2bdd6d22f05676e9a7989409e314fca

6 years agoIntroduce 'access' option for mod_block_stranger
Evgeniy Khramtsov [Sat, 17 Feb 2018 15:53:35 +0000 (18:53 +0300)]
Introduce 'access' option for mod_block_stranger

The option is supposed to be used when `allow_local_users`
and `allow_transports` are not enough. It's an ACL where `deny`
means the message will be rejected (or a CAPTCHA would be
generated for a presence), and `allow` means the sender is
whitelisted and the stanza will pass through.

The default value is `none`, which means nothing is whitelisted.

6 years agoCache 'isuser' queries to external auth program
Evgeniy Khramtsov [Fri, 16 Feb 2018 17:50:22 +0000 (20:50 +0300)]
Cache 'isuser' queries to external auth program

6 years agoImprove example extauth script
Evgeniy Khramtsov [Fri, 16 Feb 2018 17:34:09 +0000 (20:34 +0300)]
Improve example extauth script

6 years agoHandle gracefully that mnesia is already loaded when starting tests
Paweł Chmielowski [Fri, 16 Feb 2018 15:49:39 +0000 (16:49 +0100)]
Handle gracefully that mnesia is already loaded when starting tests

6 years agoExport helper function
Christophe Romain [Fri, 16 Feb 2018 08:53:38 +0000 (09:53 +0100)]
Export helper function

6 years agoExport helper functions
Christophe Romain [Fri, 16 Feb 2018 08:52:29 +0000 (09:52 +0100)]
Export helper functions

6 years agoExport aux functions from mod_muc_room
Evgeniy Khramtsov [Fri, 16 Feb 2018 05:28:33 +0000 (08:28 +0300)]
Export aux functions from mod_muc_room

6 years agoRename some keys and functions for clarity
Evgeniy Khramtsov [Thu, 15 Feb 2018 12:50:20 +0000 (15:50 +0300)]
Rename some keys and functions for clarity

6 years agoUpdate incoming stanzas counter on invalid XML
Evgeniy Khramtsov [Thu, 15 Feb 2018 12:42:55 +0000 (15:42 +0300)]
Update incoming stanzas counter on invalid XML

6 years agoBetter solution for a previous fix
Evgeniy Khramtsov [Thu, 15 Feb 2018 07:48:59 +0000 (10:48 +0300)]
Better solution for a previous fix

6 years agoDon't forget to add invalid XML responses to sending queue
Evgeniy Khramtsov [Thu, 15 Feb 2018 07:18:06 +0000 (10:18 +0300)]
Don't forget to add invalid XML responses to sending queue

6 years agoFix external components unregistration
Evgeniy Khramtsov [Wed, 14 Feb 2018 10:09:27 +0000 (13:09 +0300)]
Fix external components unregistration

6 years agoIntroduce option 'global_routes' for ejabberd_service
Evgeniy Khramtsov [Wed, 14 Feb 2018 08:53:52 +0000 (11:53 +0300)]
Introduce option 'global_routes' for ejabberd_service

The option emulates legacy behaviour which registers all routes
defined in `hosts` on a component connected. This behaviour
is considered harmful in the case when it's desired to multiplex
different components on the same port, so, to disable it,
set `global_routes` to `false`. The default value is `true`,
e.g. legacy behaviour is emulated: the only reason for this is
to maintain backward compatibility with existing deployments.

6 years agoFix indentation
Evgeniy Khramtsov [Wed, 14 Feb 2018 08:42:43 +0000 (11:42 +0300)]
Fix indentation

6 years agoChange formatting of commands markdown documentation
Paweł Chmielowski [Tue, 13 Feb 2018 15:27:39 +0000 (16:27 +0100)]
Change formatting of commands markdown documentation

6 years agoAdd case on create_room, avoid useless call
Christophe Romain [Tue, 13 Feb 2018 10:08:13 +0000 (11:08 +0100)]
Add case on create_room, avoid useless call

6 years agoReally run use_cache/1 and cache_nodes/1 callbacks for mod_mam
Evgeniy Khramtsov [Tue, 13 Feb 2018 08:38:41 +0000 (11:38 +0300)]
Really run use_cache/1 and cache_nodes/1 callbacks for mod_mam

6 years agoMerge pull request #2274 from Torxen/feature/fixed-return-value-mod_muc
Evgeny Khramtsov [Mon, 12 Feb 2018 14:36:47 +0000 (17:36 +0300)]
Merge pull request #2274 from Torxen/feature/fixed-return-value-mod_muc

Issue: mod_muc.erl expect wrong return value

6 years agoDialyzer checks always failed because the return value of the function 'get_subscribe...
Tobias Koch [Mon, 12 Feb 2018 14:12:46 +0000 (15:12 +0100)]
Dialyzer checks always failed because the return value of the function 'get_subscribed_rooms' in 'mod_muc_sql' is different to the defined value in 'mod_muc'. Fix was to update the return value in 'mod_muc.erl'.

6 years agoRemove 'iqdisc' option
Evgeniy Khramtsov [Sun, 11 Feb 2018 09:54:15 +0000 (12:54 +0300)]
Remove 'iqdisc' option

Since we got rid of all bottle-neck processes and we have
a connection pool for every database, the option is no longer
needed and in fact is detrimental: in practice what you get
is just a bunch of overloaded processes in the IQ handlers pool
no matter how much you increase the `iqdisc` value.

Given that there are close to zero operators understanding
the meaning of the option and, hence, not using it all,
it's not simply deprecated but completely removed.

The commit also deprecates the following functions:
- gen_iq_handler:add_iq_handler/6
- gen_iq_handler:handle/5
- gen_iq_handler:iqdisc/1

6 years agoBump xmpp version
Evgeniy Khramtsov [Sun, 11 Feb 2018 06:45:54 +0000 (09:45 +0300)]
Bump xmpp version

6 years agoMerge branch 'master' of github.com:processone/ejabberd
Evgeniy Khramtsov [Sat, 10 Feb 2018 08:36:48 +0000 (11:36 +0300)]
Merge branch 'master' of github.com:processone/ejabberd

6 years agoRely on use_cache/1 callback in mod_caps
Evgeniy Khramtsov [Sat, 10 Feb 2018 08:36:39 +0000 (11:36 +0300)]
Rely on use_cache/1 callback in mod_caps

6 years agomod_stream_mgmt: Abort connection on count error
Holger Weiss [Fri, 9 Feb 2018 23:06:19 +0000 (00:06 +0100)]
mod_stream_mgmt: Abort connection on count error

If the client acknowledged more stanzas than the server sent, close the
connection with a stream error rather than hiding client bugs by silently
adjusting the server's count.

6 years agoIntroduce option 'validate_stream'
Evgeniy Khramtsov [Fri, 9 Feb 2018 15:12:50 +0000 (18:12 +0300)]
Introduce option 'validate_stream'

If set to `true`, all incoming XML packets are fully validated
against known schemas. If an error occurs, the packet will be bounced
with the corresponding error reason. The default value is `false`.
The option might be useful to protect client software from sofisticated
bugs related to XML validation as well as for client developers
who want to catch validation errors at early stage of development.

Note that the option might have slight performance impact, so use it
with care on loaded machines.

6 years agoFix type spec
Evgeniy Khramtsov [Wed, 7 Feb 2018 19:20:12 +0000 (22:20 +0300)]
Fix type spec

6 years agoCommands markdown also lack arguments when policy=user
Badlop [Wed, 7 Feb 2018 15:39:18 +0000 (16:39 +0100)]
Commands markdown also lack arguments when policy=user

6 years agoIntroduce 'rate_limit' option of mod_avatar
Evgeniy Khramtsov [Mon, 5 Feb 2018 20:12:36 +0000 (23:12 +0300)]
Introduce 'rate_limit' option of mod_avatar

The option controls how many avatars a user can upload per minute.
The option takes positive integer values. The default is 10.
Note that the option only takes effect when an avatar is about
to convert to a different format, i.e. it implies that `convert`
option is configured.

6 years agoMerge branch 'master' of github.com:processone/ejabberd
Evgeniy Khramtsov [Mon, 5 Feb 2018 12:13:23 +0000 (15:13 +0300)]
Merge branch 'master' of github.com:processone/ejabberd

6 years agoExport is_online/1 function
Evgeniy Khramtsov [Mon, 5 Feb 2018 12:13:13 +0000 (15:13 +0300)]
Export is_online/1 function

6 years agoMerge pull request #2266 from mieciu/master
Jérôme Sautret [Mon, 5 Feb 2018 12:04:25 +0000 (13:04 +0100)]
Merge pull request #2266 from mieciu/master

Fix MySQL ERROR 1170 (42000) 'server_host'