summaryrefslogtreecommitdiff
path: root/src/mod_disco.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright year to 2022Badlop2022-02-111-1/+1
|
* Fix syntax in mod_disco example configurationBadlop2021-08-231-2/+2
|
* Update newest copyright year to 2021 (#3464)Badlop2021-01-271-1/+1
|
* Refer to the XEP for standard names (processone/docs.ejabberd.im#97)Badlop2020-09-111-1/+2
|
* 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/+69
| | | | | | | 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).
* Add type specs for mod_adhocEvgeny Khramtsov2019-07-091-0/+1
|
* Improve extraction of translated stringsEvgeny Khramtsov2019-06-221-10/+10
| | | | | | | | | | | | | 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")).
* Use new configuration validatorEvgeny Khramtsov2019-06-141-48/+37
|
* Update copyright to 2019 (#2756)Badlop2019-01-081-1/+1
|
* Replace hardcoded disco features with macrosEvgeniy Khramtsov2018-06-291-1/+1
|
* Avoid code duplication when checking presence subscriptionEvgeniy Khramtsov2018-06-281-18/+3
|
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-141-2/+1
| | | | | | | | | 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
* Advertise disco#info and disco#items features in mod_discoEvgeniy Khramtsov2018-06-131-3/+9
| | | | Fixes #2470
* Use 'list-multi' type for XEP-0157 xdata fieldsEvgeniy Khramtsov2018-05-291-1/+3
| | | | Thanks to Jonas Wielicki for spotting this
* Remove 'iqdisc' optionEvgeniy Khramtsov2018-02-111-27/+5
| | | | | | | | | | | | | | | | | 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-9/+15
| | | | | | | 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.
* Process 'name' option for all route-registering modulesEvgeniy Khramtsov2018-01-081-4/+7
| | | | | | | | | | | | | | | | | | | | | The option allows to set arbitrary text for disco#info identity name. Previously, option 'name' was supported by mod_proxy65 and mod_http_upload only. Now, all the following modules support this option as well: - mod_disco - mod_irc - mod_muc - mod_multicast - mod_pubsub - mod_vcard Example: ``` modules: ... mod_disco: name: "Cool XMPP Server" ... ```
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* Rename is_user_exists -> user_existsEvgeniy Khramtsov2017-05-111-1/+1
|
* Introduce 'iqdisc' global optionEvgeniy Khramtsov2017-05-041-2/+2
|
* Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov2017-04-301-24/+5
| | | | | | | | | | | | | | 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/+42
|
* Make test suite working againEvgeniy Khramtsov2017-01-231-3/+6
|
* Merge branch 'new_stream'Evgeniy Khramtsov2017-01-201-51/+14
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Implement database backend interface for ejabberd_routerEvgeniy Khramtsov2017-01-111-1/+1
| |
| * Don't forget to advertise disco featuresEvgeniy Khramtsov2017-01-101-1/+2
| |
| * Adopt remaining code to support new hooksEvgeniy Khramtsov2017-01-091-50/+12
| |
* | Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|/
* Rename #error{} record to #stanza_error{}Evgeniy Khramtsov2016-09-081-8/+8
|
* Improve some type specsEvgeniy Khramtsov2016-08-091-2/+3
|
* Change code to reflect recent changes in fxml_genEvgeniy Khramtsov2016-08-051-18/+12
|
* Rewrite mod_mam and mod_muc to use XML generatorEvgeniy Khramtsov2016-07-251-2/+2
|
* Initial version based on XML generatorEvgeniy Khramtsov2016-07-181-235/+168
|
* Make modules loading in a dependent order (#1191)Evgeniy Khramtsov2016-07-061-1/+4
|
* Replace more ?ERR_* macros with ?ERRT_*Evgeniy Khramtsov2016-04-051-14/+26
|
* XEP-0013: Flexible Offline Message Retrieval supportEvgeniy Khramtsov2016-02-091-1/+3
|
* Switch to Fast XML moduleMickael Remond2016-02-031-4/+4
|
* Update copyright to 2016 (#901)Badlop2016-01-131-1/+1
|
* Add config validation at startupEvgeniy Khramtsov2015-06-011-1/+16
|
* Document protocol support (EJABS-1620)Badlop2015-05-211-0/+3
|
* mod_disco: Apply minor readability improvementsHolger Weiss2015-04-261-13/+11
|
* mod_disco: Omit 'roster_get' call if possibleHolger Weiss2015-04-261-2/+4
| | | | | | As a small optimization, avoid running the 'roster_get' hook in the (common) case where a client requests service discovery information for its own bare JID.
* Fix service disco handling for bare account JIDsHolger Weiss2015-04-261-3/+3
| | | | | | Don't swap the sending and receiving JIDs while checking whether the client that requested service discovery information for a bare account JID is a subscribed contact.
* Update copyright dates to 2015 (EJAB-1733)Badlop2015-01-081-1/+1
|
* Merge pull request #146 from jamielinux/masterbadlop2014-04-111-4/+3
|\ | | | | Update FSF address
| * Update FSF addressJamie Nguyen2014-02-221-4/+3
| |
* | Fix service_info options processingEvgeniy Khramtsov2014-03-251-2/+2
| |
* | Update copyright dates to 2014 (EJAB-1679)Badlop2014-03-131-1/+1
|/