aboutsummaryrefslogtreecommitdiff
path: root/src/mod_irc.erl (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-06-20Move mod_irc to ejabberd-contribEvgeniy Khramtsov1-1006/+0
2018-06-14Get rid of ejabberd.hrl headerEvgeniy Khramtsov1-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
2018-02-11Remove 'iqdisc' optionEvgeniy Khramtsov1-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
2018-01-23Introduce new gen_mod callback: mod_options/1Evgeniy Khramtsov1-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.
2018-01-08Process 'name' option for all route-registering modulesEvgeniy Khramtsov1-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" ... ```
2018-01-05Update copyright datesEvgeniy Khramtsov1-1/+1
2017-09-24Reuse some translation stringsEvgeniy Khramtsov1-1/+1
2017-08-08Introduce 'hosts' optionEvgeniy Khramtsov1-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
2017-05-04Introduce 'iqdisc' global optionEvgeniy Khramtsov1-3/+3
2017-04-30Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov1-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.
2017-02-26Get rid of jid:to_string/1 and jid:from_string/1Evgeniy Khramtsov1-2/+2
2017-02-24Improve startup procedureEvgeniy Khramtsov1-3/+3
2017-02-22Reload modules when reloading configuration fileEvgeniy Khramtsov1-17/+64
2017-02-16Change routing APIEvgeniy Khramtsov1-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}
2017-02-14Attach modules to gen_mod's supervisorEvgeniy Khramtsov1-21/+4
2017-02-14Improve modules start/stop proceduresEvgeniy Khramtsov1-2/+4
2017-01-02Update copyright date automatically (#1442)Badlop1-1/+1
2016-11-26Improve translation of some messagesEvgeniy Khramtsov1-5/+3
2016-11-24Get rid of excessive (io)list_to_binary/1 callsEvgeniy Khramtsov1-48/+39
2016-11-23Move copyright definition to ejabberd.hrlEvgeniy Khramtsov1-2/+1
2016-09-08Rename #error{} record to #stanza_error{}Evgeniy Khramtsov1-1/+1
2016-08-09Improve some type specsEvgeniy Khramtsov1-4/+2
2016-08-05Change code to reflect recent changes in fxml_genEvgeniy Khramtsov1-2/+2
2016-08-03Fix calls to undefined functionsEvgeniy Khramtsov1-3/+3
2016-08-03Rewrite mod_irc to use XML generatorEvgeniy Khramtsov1-764/+463
2016-07-29Switch workers from temporary to transientChristophe Romain1-1/+1
2016-07-06Make modules loading in a dependent order (#1191)Evgeniy Khramtsov1-1/+4
2016-06-21Use {access,shaper}_rules_validator in other places where access rules are usedPaweł Chmielowski1-2/+2
2016-04-27Improve detection of databases supported by modules (#1092)Evgeniy Khramtsov1-1/+1
2016-04-14Clean mod_irc.erl from DB specific codeEvgeniy Khramtsov1-150/+26
2016-04-05Replace more ?ERR_* macros with ?ERRT_*Evgeniy Khramtsov1-19/+36
2016-03-13Make it possible to get virtual host of a registered routeEvgeniy Khramtsov1-1/+1
2016-02-03Switch to Fast XML moduleMickael Remond1-10/+10
2016-02-03Move to new iconv packageMickael Remond1-1/+1
2016-01-13Update copyright to 2016 (#901)Badlop1-2/+2
2015-12-21Adding WEBIRC, custom realname & ident, ISO-8859-15 (thanks to ↵Badlop1-3/+43
iwalkalone69)(#877)
2015-11-24Move JID related functions to jid.erl (#847)Evgeniy Khramtsov1-13/+13
2015-10-07cosmetic cleanupChristophe Romain1-2/+0
2015-06-01Add config validation at startupEvgeniy Khramtsov1-2/+11
2015-03-30Add new 'default_db' optionEvgeniy Khramtsov1-1/+1
2015-01-08Update copyright dates to 2015 (EJAB-1733)Badlop1-2/+2
2014-07-14Serialize records to proplists before storing then in RiakEvgeniy Khramtsov1-3/+7
2014-07-10Add SQL to Riak converterEvgeniy Khramtsov1-0/+2
2014-07-10Improve Riak supportEvgeniy Khramtsov1-0/+16
2014-06-09Fix previous commitEvgeniy Khramtsov1-1/+2
2014-06-09Don't stop irc table conversion on broken JIDsEvgeniy Khramtsov1-4/+10
2014-06-07Ignore malformed parameters for mod_irc moduleEvgeniy Khramtsov1-16/+26
2014-06-07Fix data convertionEvgeniy Khramtsov1-3/+8
2014-03-13Update copyright dates to 2014 (EJAB-1679)Badlop1-2/+2
2014-02-22Update FSF addressJamie Nguyen1-4/+3