summaryrefslogtreecommitdiff
path: root/src/mod_blocking.erl (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-02-11Update copyright year to 2022Badlop1-1/+1
2021-01-27Update newest copyright year to 2021 (#3464)Badlop1-1/+1
2020-09-03Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson1-1/+1
2020-01-28Update copyright to 2020 (#3149)Badlop1-1/+1
2020-01-08Generate ejabberd.yml.5 man page from source code directlyEvgeny Khramtsov1-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).
2019-09-23Correctly handle unicode in log messagesEvgeny Khramtsov1-1/+1
2019-07-10Add/improve type specsEvgeny Khramtsov1-0/+1
2019-06-22Improve extraction of translated stringsEvgeny Khramtsov1-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")).
2019-01-08Update copyright to 2019 (#2756)Badlop1-1/+1
2018-07-05Move move randoms module to p1_utils repoEvgeniy Khramtsov1-1/+1
2018-06-14Get rid of ejabberd.hrl headerEvgeniy Khramtsov1-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
2018-05-02mod_blocking: Use #block_item{} recordHolger Weiss1-6/+9
2018-02-18Push blocking related IQs from bare JIDEvgeniy Khramtsov1-1/+2
Fixes #2287
2018-02-11Remove 'iqdisc' optionEvgeniy Khramtsov1-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
2018-01-23Introduce new gen_mod callback: mod_options/1Evgeniy Khramtsov1-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.
2018-01-05Update copyright datesEvgeniy Khramtsov1-1/+1
2017-05-20Implement cache for mod_privacy/mod_blockingEvgeniy Khramtsov1-105/+107
2017-05-04Introduce 'iqdisc' global optionEvgeniy Khramtsov1-2/+2
2017-04-30Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov1-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.
2017-02-22Reload modules when reloading configuration fileEvgeniy Khramtsov1-1/+12
2017-02-16Change routing APIEvgeniy Khramtsov1-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}
2017-01-23Make test suite working againEvgeniy Khramtsov1-3/+3
2017-01-09Adopt remaining code to support new hooksEvgeniy Khramtsov1-140/+116
2017-01-02Update copyright date automatically (#1442)Badlop1-1/+1
2016-12-28Add xmpp_stream_out behaviour and rewrite s2s/SM codeEvgeniy Khramtsov1-5/+7
2016-12-11Initial version of new XMPP stream behaviour (for review)Evgeniy Khramtsov1-5/+28
2016-10-22Add more tests for privacy lists and blocking commandEvgeniy Khramtsov1-6/+7
2016-09-13Make common tests working againEvgeniy Khramtsov1-23/+21
2016-09-08Rename #error{} record to #stanza_error{}Evgeniy Khramtsov1-8/+8
2016-08-09Improve some type specsEvgeniy Khramtsov1-5/+2
2016-08-05Change code to reflect recent changes in fxml_genEvgeniy Khramtsov1-5/+4
2016-07-19Rewrite mod_blocking to use XML generatorEvgeniy Khramtsov1-79/+87
2016-07-06Make modules loading in a dependent order (#1191)Evgeniy Khramtsov1-1/+4
2016-04-14Clean mod_blocking.erl from DB specific codeEvgeniy Khramtsov1-207/+15
2016-03-31Replace some ?ERR_* macros with ?ERRT_*Evgeniy Khramtsov1-28/+33
2016-03-02Update more SQL queriesAlexey Shchepin1-27/+13
2016-02-03Switch to Fast XML moduleMickael Remond1-2/+2
2016-01-13Update copyright to 2016 (#901)Badlop1-1/+1
2015-11-24Move JID related functions to jid.erl (#847)Evgeniy Khramtsov1-5/+5
2015-08-05Update FSF addressChristophe Romain1-4/+3
2015-06-01Add config validation at startupEvgeniy Khramtsov1-1/+4
2015-05-21Document protocol support (EJABS-1620)Badlop1-0/+2
2015-03-13Improve module structureEvgeniy Khramtsov1-97/+20
2015-03-13Do not fail on badly formed SQL resultsEvgeniy Khramtsov1-4/+4
2015-03-13Fix unblock all when Riak is used as a backendEvgeniy Khramtsov1-1/+2
2015-01-08Update copyright dates to 2015 (EJAB-1733)Badlop1-1/+1
2014-10-10Fix list unblocking when Riak is used as a backendEvgeniy Khramtsov1-1/+2
2014-07-16Fix blocklist getEvgeniy Khramtsov1-2/+2
2014-07-14Serialize records to proplists before storing then in RiakEvgeniy Khramtsov1-5/+10
2014-07-10Improve Riak supportEvgeniy Khramtsov1-0/+91