aboutsummaryrefslogtreecommitdiff
path: root/src/mod_disco.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* 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
|/
* Fix some type specs and errors13.12Evgeniy Khramtsov2013-12-101-1/+1
|
* Change configuration file format to YAMLEvgeniy Khramtsov2013-08-211-4/+29
|
* Switch to rebar build toolEvgeniy Khramtsov2013-06-131-0/+1
| | | | | | | | | | | | | | | | Use dynamic Rebar configuration Make iconv dependency optional Disable transient_supervisors compile option Add hipe compilation support Only compile ibrowse and lhttpc when needed Make it possible to generate an OTP application release Add --enable-debug compile option Add --enable-all compiler option Add --enable-tools configure option Add --with-erlang configure option. Add --enable-erlang-version-check configure option. Add lager support Improve the test suite
* Accumulated patch to binarize and indent codeBadlop2013-03-141-330/+353
|
* Update copyright datesAlexey Shchepin2013-01-241-1/+1
|
* Update copyright datesAlexey Shchepin2012-02-231-1/+1
|
* Use #roster record instead of direct tupleBadlop2011-07-131-1/+2
|
* update copyright up to 2011Christophe Romain2011-02-141-1/+1
|
* full support for XEP-0115 v1.5 (EJAB-1223) (EJAB-1189)Evgeniy Khramtsov2010-05-081-9/+21
|
* Fixed Bugs handling Service Discovery to contacts.Emilio Bustos2010-04-221-52/+82
| | | | Resolves [#EJAB-1207]
* Update year of ProcessOne copyright from 2009 to 2010 (EJAB-1159)Badlop2010-01-121-1/+1
| | | | SVN Revision: 2891