summaryrefslogtreecommitdiff
path: root/src/mod_privacy.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2022Badlop2022-02-111-1/+1
|
* Use specific syntax so modules and top-level will be linksBadlop2021-08-231-6/+6
| | | | | | If we use _`whatever`_ here in ejabberd man pages, it is converted to *`whatever`* in markdown, and docs.ejabberd.im/Makefile converts to the proper links
* Fix Dialyzer warning about function contract that changed in fad14ff31Badlop2021-02-191-1/+1
|
* Make fetching roster in mod_privacy lazyPaweł Chmielowski2021-02-161-30/+39
|
* Update newest copyright year to 2021 (#3464)Badlop2021-01-271-1/+1
|
* Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson2020-09-031-1/+1
|
* Update copyright to 2020 (#3149)Badlop2020-01-281-1/+1
|
* Generate ejabberd.yml.5 man page from source code directlyEvgeny Khramtsov2020-01-081-1/+33
| | | | | | | Several documentation callbacks (doc/0 and mod_doc/0) are implemented and `ejabberdctl man` command is added to generate a man page. Note that the command requires a2x to be installed (which is a part of asciidoc package).
* Correctly handle unicode in log messagesEvgeny Khramtsov2019-09-231-4/+4
|
* Revert "mod_privacy: Don't try to look up 'undefined' list"Holger Weiss2019-07-241-2/+0
| | | | | This reverts commit 4218aecd1c7f58207ab17d3cccf2886d5558d62b. The issue was fixed in a0d3fb3b2333f5b221d06944509fd7e673bf1cc4 already.
* mod_privacy: Don't try to look up 'undefined' listHolger Weiss2019-07-241-0/+2
| | | | | | | | Don't crash if the <query/> element of an IQ of type 'set' contains neither a <default/> nor an <active/> child. This fixes a regression introduced in commit 8410a203ec81f0b0b9e4885221abf1d7ba6bd9f1.
* Fix typos using codespellEvgeny Khramtsov2019-07-161-1/+1
|
* Improve extraction of translated stringsEvgeny Khramtsov2019-06-221-19/+20
| | | | | | | | | | | | | Now every such string MUST be encapsulated into ?T() macro. The macro itself is defined in include/translate.hrl. Example: -module(foo). -export([bar/1]). -include("translate.hrl"). bar(Lang) -> translate:translate(Lang, ?T("baz")).
* Don't attempt to query 'undefined' active listEvgeny Khramtsov2019-06-211-30/+35
| | | | Also code formatting was improved
* Get rid of "well-known" typeEvgeny Khramtsov2019-06-151-11/+8
|
* Use new configuration validatorEvgeny Khramtsov2019-06-141-19/+22
|
* Refactor mod_privacy patch; move logic user_receive_packet toNathan Bruning2019-06-101-34/+34
| | | | user_send_packet.
* Fix user_send_packet in mod_privacy; was failing on newly created usersNathan Bruning2019-06-101-1/+1
|
* Fix mod_privacy race conditionNathan Bruning2019-06-101-0/+21
| | | | | | | | | mod_privacy updates the c2s state in user_receive_packet, which tracks the *result* of the IQ set for active privacy lists. When a second stanza is sent directly after a privacy list request, the second stanza will be processed using the old privacy list, because the IQ result has not yet been routed.
* Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
|
* Move move randoms module to p1_utils repoEvgeniy Khramtsov2018-07-051-1/+1
|
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-141-1/+0
| | | | | | | | | The header consisted of too many unrelated stuff and macros misuse. Some stuff is moved into scram.hrl and type_compat.hrl. All macros have been replaced with the corresponding function calls. TODO: probably type_compat.hrl is not even needed anymore since we support only Erlang >= OTP 17.5
* Remove 'iqdisc' optionEvgeniy Khramtsov2018-02-111-13/+3
| | | | | | | | | | | | | | | | | 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
* Introduce option 'captcha' for mod_block_strangersEvgeniy Khramtsov2018-01-261-3/+4
| | | | | | | | | | When the option is set to `true`, the module will generate CAPTCHA challenges for incoming subscription requests. The option also implies that option `drop` is set to `true`. Note that the module won't generate CAPTCHA challenges for messages: they will still be rejected if `drop` is set to `true`. Fixes #2246
* Introduce new gen_mod callback: mod_options/1Evgeniy Khramtsov2018-01-231-23/+19
| | | | | | | The callback is supposed to provide known options and their default values, as long as the documentation. Passing default values into get_mod functions is now deprecated: all defaults should be provided by the Mod:mod_options/1 callback.
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* Use xmpp:io_format_error/1 wherever possibleEvgeniy Khramtsov2017-11-141-1/+1
|
* Add forgotten caching options to the validator (thanks to Jan Pinkas)Evgeniy Khramtsov2017-08-241-1/+9
|
* Explicitly match against <domain/resource>Evgeniy Khramtsov2017-08-231-19/+23
| | | | Fixes #1958
* mod_privacy: Don't crash while copying c2s stateHolger Weiss2017-07-071-1/+3
| | | | | Don't assume 'privacy_active_list' is set when c2s_copy_session/2 is called.
* mod_privacy: Apply cosmetic change to type specHolger Weiss2017-07-071-1/+1
|
* Implement cache for mod_privacy/mod_blockingEvgeniy Khramtsov2017-05-201-189/+307
|
* Introduce 'iqdisc' global optionEvgeniy Khramtsov2017-05-041-2/+2
|
* Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov2017-04-301-5/+2
| | | | | | | | | | | | | | The changes are very similar to those from previous commit: * Now there is no need to pass validating function in gen_mod:get_opt() and gen_mod:get_module_opt() functions, because the modules' configuration keeps already validated values. * New functions gen_mod:get_opt/2 and gen_mod:get_module_opt/3 are introduced. * Functions gen_mod:get_opt/4 and get_module_opt/5 are deprecated. If the functions are still called, the "function" argument is simply ignored. * Validating callback Mod:listen_opt_type/1 is introduced to validate listening options at startup.
* Get rid of jid:to_string/1 and jid:from_string/1Evgeniy Khramtsov2017-02-261-2/+2
|
* Don't pass empty resource to jid:make()Evgeniy Khramtsov2017-02-251-1/+1
|
* Reload modules when reloading configuration fileEvgeniy Khramtsov2017-02-221-1/+19
|
* Fix some dialyzer warningsEvgeniy Khramtsov2017-02-181-1/+1
|
* Change routing APIEvgeniy Khramtsov2017-02-161-1/+1
| | | | | | | | | | | Now 'From' and 'To' arguments must be omitted in functions and structures related to routing. The commit deprecates the following functions: ejabberd_router:route/3 in favor of ejabberd_router:route/1 ejabberd_router:route_error/4 in favor of ejabberd_router:route_error/2 ejabberd_local:route_iq/4 in favor of ejabberd_local:route_iq/2 ejabberd_local:route_iq/5 in favor of ejabberd_local:route_iq/3 The format of {route, From, To, Packet} is changed in favor of {route, Packet}
* Merge branch 'new_stream'Evgeniy Khramtsov2017-01-201-158/+213
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/cyrsasl.erl src/ejabberd_c2s.erl src/ejabberd_cluster.erl src/ejabberd_frontend_socket.erl src/ejabberd_node_groups.erl src/ejabberd_router.erl src/mod_bosh.erl src/mod_ip_blacklist.erl src/mod_muc_mnesia.erl src/mod_offline.erl src/mod_proxy65_sm.erl
| * Adopt remaining code to support new hooksEvgeniy Khramtsov2017-01-091-205/+246
| |
| * Add xmpp_stream_out behaviour and rewrite s2s/SM codeEvgeniy Khramtsov2016-12-281-5/+5
| |
| * Initial version of new XMPP stream behaviour (for review)Evgeniy Khramtsov2016-12-111-16/+30
| |
* | Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|/
* Don't use deprecated functions from jlib.erlEvgeniy Khramtsov2016-11-231-3/+3
|
* Fix issues on import improvementsChristophe Romain2016-11-221-0/+1
|
* Improve ODBC importChristophe Romain2016-11-221-11/+101
|
* Add more tests for privacy lists and blocking commandEvgeniy Khramtsov2016-10-221-29/+38
|
* Make common tests working againEvgeniy Khramtsov2016-09-131-4/+10
|
* Rename #error{} record to #stanza_error{}Evgeniy Khramtsov2016-09-081-9/+9
|