summaryrefslogtreecommitdiff
path: root/src/mod_announce.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* Reuse some translation stringsEvgeniy Khramtsov2017-09-241-5/+5
|
* Add forgotten caching options to the validator (thanks to Jan Pinkas)Evgeniy Khramtsov2017-08-241-1/+9
|
* Implement cache for mod_announceEvgeniy Khramtsov2017-05-221-18/+138
|
* Use cache for authentication backendsEvgeniy Khramtsov2017-05-111-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The commit introduces the following API incompatibilities: In ejabberd_auth.erl: * dirty_get_registered_users/0 is renamed to get_users/0 * get_vh_registered_users/1 is renamed to get_users/1 * get_vh_registered_users/2 is renamed to get_users/2 * get_vh_registered_users_number/1 is renamed to count_users/1 * get_vh_registered_users_number/2 is renamed to count_users/2 In ejabberd_auth callbacks * plain_password_required/0 is replaced by plain_password_required/1 where the argument is a virtual host * store_type/0 is replaced by store_type/1 where the argument is a virtual host * set_password/3 is now an optional callback * remove_user/3 callback is no longer needed * remove_user/2 now should return `ok | {error, atom()}` * is_user_exists/2 now must only be implemented for backends with `external` store type * check_password/6 is no longer needed * check_password/4 now must only be implemented for backends with `external` store type * try_register/3 is now an optional callback and should return `ok | {error, atom()}` * dirty_get_registered_users/0 is no longer needed * get_vh_registered_users/1 is no longer needed * get_vh_registered_users/2 is renamed to get_users/2 * get_vh_registered_users_number/1 is no longer needed * get_vh_registered_users_number/2 is renamed to count_users/2 * get_password_s/2 is no longer needed * get_password/2 now must only be implemented for backends with `plain` or `scram` store type Additionally, the commit introduces two new callbacks: * use_cache/1 where the argument is a virtual host * cache_nodes/1 where the argument is a virtual host New options are also introduced: `auth_use_cache`, `auth_cache_missed`, `auth_cache_life_time` and `auth_cache_size`.
* Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov2017-04-301-3/+1
| | | | | | | | | | | | | | 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.
* Don't pass empty resource to jid:make()Evgeniy Khramtsov2017-02-251-2/+2
|
* Reload modules when reloading configuration fileEvgeniy Khramtsov2017-02-221-1/+11
|
* Fix some dialyzer warningsEvgeniy Khramtsov2017-02-161-1/+1
|
* Change routing APIEvgeniy Khramtsov2017-02-161-162/+112
| | | | | | | | | | | 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}
* Attach modules to gen_mod's supervisorEvgeniy Khramtsov2017-02-141-21/+6
|
* Improve modules start/stop proceduresEvgeniy Khramtsov2017-02-141-64/+86
|
* Check result of gen_mod:start/2 callback (#1534)Evgeniy Khramtsov2017-02-131-2/+3
|
* Merge branch 'new_stream'Evgeniy Khramtsov2017-01-201-7/+13
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-7/+13
| |
* | Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|/
* Use ejabberd_router:route_error/4 wherever possibleEvgeniy Khramtsov2016-11-251-40/+16
|
* Improve ODBC importChristophe Romain2016-11-221-10/+12
|
* Merge branch 'master' into xml-ngEvgeniy Khramtsov2016-11-121-5/+9
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/adhoc.erl src/cyrsasl_oauth.erl src/ejabberd_c2s.erl src/ejabberd_config.erl src/ejabberd_service.erl src/gen_mod.erl src/mod_admin_extra.erl src/mod_announce.erl src/mod_carboncopy.erl src/mod_client_state.erl src/mod_configure.erl src/mod_echo.erl src/mod_mam.erl src/mod_muc.erl src/mod_muc_room.erl src/mod_offline.erl src/mod_pubsub.erl src/mod_stats.erl src/node_flat_sql.erl src/randoms.erl
| * Store announcements for offline usersHolger Weiss2016-08-131-3/+9
| | | | | | | | | | | | Add a <store/> hint to announcements (unless they are explicitly sent to online users). Without that hint, announcements weren't delivered to offline users, since they are sent as messages of type "headline".
* | Improve namespace handlingEvgeniy Khramtsov2016-09-241-2/+2
| |
* | Make common tests working againEvgeniy Khramtsov2016-09-131-26/+29
| |
* | Rename #error{} record to #stanza_error{}Evgeniy Khramtsov2016-09-081-3/+3
| |
* | Improve some type specsEvgeniy Khramtsov2016-08-091-23/+20
| |
* | Change code to reflect recent changes in fxml_genEvgeniy Khramtsov2016-08-051-2/+1
| |
* | Rewrite mod_adhoc and mod_announce to use XML generatorEvgeniy Khramtsov2016-07-261-220/+135
|/
* Make modules loading in a dependent order (#1191)Evgeniy Khramtsov2016-07-061-1/+4
|
* Use {access,shaper}_rules_validator in other places where access rules are usedPaweł Chmielowski2016-06-211-2/+2
|
* Improve detection of databases supported by modules (#1092)Evgeniy Khramtsov2016-04-271-1/+1
|
* Clean mod_announce.erl from DB specific codeEvgeniy Khramtsov2016-04-131-288/+40
|
* Replace more ?ERR_* macros with ?ERRT_*Evgeniy Khramtsov2016-04-051-41/+64
|
* Switch to Fast XML moduleMickael Remond2016-02-031-8/+8
|
* Update copyright to 2016 (#901)Badlop2016-01-131-1/+1
|
* Move JID related functions to jid.erl (#847)Evgeniy Khramtsov2015-11-241-12/+12
|
* Add config validation at startupEvgeniy Khramtsov2015-06-011-14/+10
|
* Add new 'default_db' optionEvgeniy Khramtsov2015-03-301-1/+1
|
* Update copyright dates to 2015 (EJAB-1733)Badlop2015-01-081-1/+1
|
* Serialize records to proplists before storing then in RiakEvgeniy Khramtsov2014-07-141-7/+16
|
* Add SQL to Riak converterEvgeniy Khramtsov2014-07-101-0/+4
|
* Improve Riak supportEvgeniy Khramtsov2014-07-101-0/+48
|
* Merge pull request #146 from jamielinux/masterbadlop2014-04-111-4/+3
|\ | | | | Update FSF address
| * Update FSF addressJamie Nguyen2014-02-221-4/+3
| |
* | Update copyright dates to 2014 (EJAB-1679)Badlop2014-03-131-1/+1
|/
* Add SQL to Mnesia converterEvgeniy Khramtsov2013-07-211-1/+21
|
* 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
* Fix get of announcement formBadlop2013-04-251-1/+1
|
* Accumulated patch to binarize and indent codeBadlop2013-03-141-329/+337
|
* Update copyright datesAlexey Shchepin2013-01-241-1/+1
|
* Send announce Message stanzas as Headline type instead of NormalBadlop2012-07-241-2/+2
|
* Merge SQL and Mnesia code into one module (EJAB-1560)Evgeniy Khramtsov2012-04-271-38/+142
|