aboutsummaryrefslogtreecommitdiff
path: root/src/mod_blocking.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2022Badlop2022-02-111-1/+1
|
* 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/+9
| | | | | | | 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-1/+1
|
* Add/improve type specsEvgeny Khramtsov2019-07-101-0/+1
|
* Improve extraction of translated stringsEvgeny Khramtsov2019-06-221-7/+6
| | | | | | | | | | | | | 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")).
* 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
* mod_blocking: Use #block_item{} recordHolger Weiss2018-05-021-6/+9
|
* Push blocking related IQs from bare JIDEvgeniy Khramtsov2018-02-181-1/+2
| | | | Fixes #2287
* Remove 'iqdisc' optionEvgeniy Khramtsov2018-02-111-16/+7
| | | | | | | | | | | | | | | | | 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 new gen_mod callback: mod_options/1Evgeniy Khramtsov2018-01-231-5/+7
| | | | | | | 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
|
* Implement cache for mod_privacy/mod_blockingEvgeniy Khramtsov2017-05-201-105/+107
|
* 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.
* Reload modules when reloading configuration fileEvgeniy Khramtsov2017-02-221-1/+12
|
* 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}
* Make test suite working againEvgeniy Khramtsov2017-01-231-3/+3
|
* Merge branch 'new_stream'Evgeniy Khramtsov2017-01-201-102/+103
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-140/+116
| |
| * Add xmpp_stream_out behaviour and rewrite s2s/SM codeEvgeniy Khramtsov2016-12-281-5/+7
| |
| * Initial version of new XMPP stream behaviour (for review)Evgeniy Khramtsov2016-12-111-5/+28
| |
* | Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|/
* Add more tests for privacy lists and blocking commandEvgeniy Khramtsov2016-10-221-6/+7
|
* Make common tests working againEvgeniy Khramtsov2016-09-131-23/+21
|
* Rename #error{} record to #stanza_error{}Evgeniy Khramtsov2016-09-081-8/+8
|
* Improve some type specsEvgeniy Khramtsov2016-08-091-5/+2
|
* Change code to reflect recent changes in fxml_genEvgeniy Khramtsov2016-08-051-5/+4
|
* Rewrite mod_blocking to use XML generatorEvgeniy Khramtsov2016-07-191-79/+87
|
* Make modules loading in a dependent order (#1191)Evgeniy Khramtsov2016-07-061-1/+4
|
* Clean mod_blocking.erl from DB specific codeEvgeniy Khramtsov2016-04-141-207/+15
|
* Replace some ?ERR_* macros with ?ERRT_*Evgeniy Khramtsov2016-03-311-28/+33
|
* Update more SQL queriesAlexey Shchepin2016-03-021-27/+13
|
* Switch to Fast XML moduleMickael Remond2016-02-031-2/+2
|
* Update copyright to 2016 (#901)Badlop2016-01-131-1/+1
|
* Move JID related functions to jid.erl (#847)Evgeniy Khramtsov2015-11-241-5/+5
|
* Update FSF addressChristophe Romain2015-08-051-4/+3
|
* Add config validation at startupEvgeniy Khramtsov2015-06-011-1/+4
|
* Document protocol support (EJABS-1620)Badlop2015-05-211-0/+2
|
* Improve module structureEvgeniy Khramtsov2015-03-131-97/+20
|
* Do not fail on badly formed SQL resultsEvgeniy Khramtsov2015-03-131-4/+4
|
* Fix unblock all when Riak is used as a backendEvgeniy Khramtsov2015-03-131-1/+2
|
* Update copyright dates to 2015 (EJAB-1733)Badlop2015-01-081-1/+1
|
* Fix list unblocking when Riak is used as a backendEvgeniy Khramtsov2014-10-101-1/+2
|
* Fix blocklist getEvgeniy Khramtsov2014-07-161-2/+2
|
* Serialize records to proplists before storing then in RiakEvgeniy Khramtsov2014-07-141-5/+10
|