aboutsummaryrefslogtreecommitdiff
path: root/src/mod_irc.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move mod_irc to ejabberd-contribEvgeniy Khramtsov2018-06-201-1006/+0
|
* Get rid of ejabberd.hrl headerEvgeniy Khramtsov2018-06-141-4/+2
| | | | | | | | | 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
* Remove 'iqdisc' optionEvgeniy Khramtsov2018-02-111-22/+9
| | | | | | | | | | | | | | | | | 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-23/+30
| | | | | | | 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-3/+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
|
* Reuse some translation stringsEvgeniy Khramtsov2017-09-241-1/+1
|
* Introduce 'hosts' optionEvgeniy Khramtsov2017-08-081-24/+38
| | | | | | | | | | | | | | | The option can be used as a replacement of 'host' option when several (sub)domains are needed to be registered for the module. Note that you cannot combine both 'host' and 'hosts' in the config because 'host' option is of a higher priority. Example: mod_pubsub: ... hosts: - "pubsub1.@HOST@" - "pubsub2.@HOST@" Fixes #1883
* Introduce 'iqdisc' global optionEvgeniy Khramtsov2017-05-041-3/+3
|
* Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov2017-04-301-20/+8
| | | | | | | | | | | | | | 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.
* Get rid of jid:to_string/1 and jid:from_string/1Evgeniy Khramtsov2017-02-261-2/+2
|
* Improve startup procedureEvgeniy Khramtsov2017-02-241-3/+3
|
* Reload modules when reloading configuration fileEvgeniy Khramtsov2017-02-221-17/+64
|
* Change routing APIEvgeniy Khramtsov2017-02-161-15/+16
| | | | | | | | | | | 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/+4
|
* Improve modules start/stop proceduresEvgeniy Khramtsov2017-02-141-2/+4
|
* Update copyright date automatically (#1442)Badlop2017-01-021-1/+1
|
* Improve translation of some messagesEvgeniy Khramtsov2016-11-261-5/+3
|
* Get rid of excessive (io)list_to_binary/1 callsEvgeniy Khramtsov2016-11-241-48/+39
|
* Move copyright definition to ejabberd.hrlEvgeniy Khramtsov2016-11-231-2/+1
|
* Merge branch 'master' into xml-ngEvgeniy Khramtsov2016-11-121-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| * Switch workers from temporary to transientChristophe Romain2016-07-291-1/+1
| |
* | Rename #error{} record to #stanza_error{}Evgeniy Khramtsov2016-09-081-1/+1
| |
* | Improve some type specsEvgeniy Khramtsov2016-08-091-4/+2
| |
* | Change code to reflect recent changes in fxml_genEvgeniy Khramtsov2016-08-051-2/+2
| |
* | Fix calls to undefined functionsEvgeniy Khramtsov2016-08-031-3/+3
| |
* | Rewrite mod_irc to use XML generatorEvgeniy Khramtsov2016-08-031-764/+463
|/
* 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_irc.erl from DB specific codeEvgeniy Khramtsov2016-04-141-150/+26
|
* Replace more ?ERR_* macros with ?ERRT_*Evgeniy Khramtsov2016-04-051-19/+36
|
* Make it possible to get virtual host of a registered routeEvgeniy Khramtsov2016-03-131-1/+1
|
* Switch to Fast XML moduleMickael Remond2016-02-031-10/+10
|
* Move to new iconv packageMickael Remond2016-02-031-1/+1
|
* Update copyright to 2016 (#901)Badlop2016-01-131-2/+2
|
* Adding WEBIRC, custom realname & ident, ISO-8859-15 (thanks to ↵Badlop2015-12-211-3/+43
| | | | iwalkalone69)(#877)
* Move JID related functions to jid.erl (#847)Evgeniy Khramtsov2015-11-241-13/+13
|
* cosmetic cleanupChristophe Romain2015-10-071-2/+0
|
* Add config validation at startupEvgeniy Khramtsov2015-06-011-2/+11
|
* Add new 'default_db' optionEvgeniy Khramtsov2015-03-301-1/+1
|
* Update copyright dates to 2015 (EJAB-1733)Badlop2015-01-081-2/+2
|
* Serialize records to proplists before storing then in RiakEvgeniy Khramtsov2014-07-141-3/+7
|
* Add SQL to Riak converterEvgeniy Khramtsov2014-07-101-0/+2
|
* Improve Riak supportEvgeniy Khramtsov2014-07-101-0/+16
|
* Fix previous commitEvgeniy Khramtsov2014-06-091-1/+2
|
* Don't stop irc table conversion on broken JIDsEvgeniy Khramtsov2014-06-091-4/+10
|
* Ignore malformed parameters for mod_irc moduleEvgeniy Khramtsov2014-06-071-16/+26
|
* Fix data convertionEvgeniy Khramtsov2014-06-071-3/+8
|
* Merge pull request #146 from jamielinux/masterbadlop2014-04-111-4/+3
|\ | | | | Update FSF address