aboutsummaryrefslogtreecommitdiff
path: root/src/mod_muc_log.erl (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-02-11Update copyright year to 2022Badlop1-1/+1
2021-08-23Use specific syntax so modules and top-level will be linksBadlop1-1/+1
If we use _`whatever`_ here in ejabberd man pages, it is converted to *`whatever`* in markdown, and docs.ejabberd.im/Makefile converts to the proper links
2021-01-27Update newest copyright year to 2021 (#3464)Badlop1-1/+1
2020-09-03Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson1-1/+1
2020-07-10Fix crash when creating new MUC log file in non-ASCII lang (#3324)Badlop1-1/+1
2020-05-15Don't crash in mod_muc_log:get_url when mod_muc_log is not enabledPaweł Chmielowski1-1/+4
Disco on room can call this function even when logger is not enabled, but this room option was enabled previously when logger was active.
2020-01-28Update copyright to 2020 (#3149)Badlop1-1/+1
2020-01-08Generate ejabberd.yml.5 man page from source code directlyEvgeny Khramtsov1-1/+122
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).
2019-12-16Fix mod_muc_log skipping non-Latin messages (thanks to Yandrey)(#3115)Badlop1-5/+3
2019-09-26Advertise muc#roominfo_logs in disco#info of the roomEvgeny Khramtsov1-2/+18
The commit adds new `url` option for mod_muc_log. Fixes #3040
2019-09-23Correctly handle unicode in log messagesEvgeny Khramtsov1-44/+44
2019-08-04Don't retain module option on gen_mod supervisorEvgeny Khramtsov1-1/+2
When module's options were updated (e.g. by reloading ejabberd.yml) and, later, the module's process crashed, gen_mod supervisor restarts the process with outdated options. This is now fixed.
2019-07-09Don't expose internal FSM API of mod_muc_roomEvgeny Khramtsov1-2/+3
2019-07-07Improve formatting of exceptionsEvgeny Khramtsov1-1/+1
2019-06-24Make logging messages more consistentEvgeny Khramtsov1-1/+1
2019-06-22Improve extraction of translated stringsEvgeny Khramtsov1-68/+70
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")).
2019-06-14Use new configuration validatorEvgeny Khramtsov1-69/+55
2019-02-27Replace code using p1_time_compat wrapper with native functionsPaweł Chmielowski1-3/+3
Since we now require R19, we shouldn't need that anymore. There are still couple places where p1_time_compat:unique_timestamp() is used as there is no direct equivalent.
2019-01-08Update copyright to 2019 (#2756)Badlop1-1/+1
2018-11-15Replace dict with mapsEvgeny Khramtsov1-1/+1
This will improve performance and memory consumptions of large MUCs
2018-06-29Support both filenames and URLs in 'cssfile' option of mod_muc_logEvgeniy Khramtsov1-7/+11
If filename is provided, its content is inserted into the HTML page. If URL is provided, it's used as a value of 'href' HTML attribute.
2018-06-14Get rid of ejabberd.hrl headerEvgeniy Khramtsov1-1/+0
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-04-02Fix Code format when logging a MUC room kick/banBadlop1-7/+7
2018-01-23Introduce new gen_mod callback: mod_options/1Evgeniy Khramtsov1-17/+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-05Update copyright datesEvgeniy Khramtsov1-1/+1
2017-11-13Get rid of forgotten debug messageEvgeniy Khramtsov1-1/+0
2017-11-13Properly store <subject/> elementEvgeniy Khramtsov1-1/+1
Fixes #2099
2017-10-09Don't include CSS, javascript and image data directly in the codeEvgeniy Khramtsov1-257/+20
2017-09-24Reuse some translation stringsEvgeniy Khramtsov1-1/+1
2017-09-24Add script to extract translation stringsEvgeniy Khramtsov1-46/+45
2017-08-05Replace gen_fsm with p1_fsm to avoid warnings in OTP20+Evgeniy Khramtsov1-1/+1
2017-05-23Deprecate misc:encode_base64/1 and misc:decode_base64/1Evgeniy Khramtsov1-2/+2
2017-05-12Check presence of some files during option validationEvgeniy Khramtsov1-1/+1
2017-05-05Improve validation of second-level optionsEvgeniy Khramtsov1-6/+8
2017-04-30Don't validate an option in gen_mod:get*opt() functionsEvgeniy Khramtsov1-43/+11
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-04-28Don't re-define validation functions in multiple placesEvgeniy Khramtsov1-10/+2
2017-04-11Rename aux.erl as misc.erl17.04Christophe Romain1-3/+3
Thanks Microsoft Windows to not support some filenames
2017-03-30Deprecate jlib.erl in favor of aux.erlEvgeniy Khramtsov1-3/+3
Since the main goal of jlib.erl is lost, all auxiliary functions are now moved to aux.erl, and the whole jlib.erl is now deprecated.
2017-02-26Get rid of jid:to_string/1 and jid:from_string/1Evgeniy Khramtsov1-3/+3
2017-02-22Reload modules when reloading configuration fileEvgeniy Khramtsov1-31/+41
2017-02-14Attach modules to gen_mod's supervisorEvgeniy Khramtsov1-15/+4
2017-02-14Improve modules start/stop proceduresEvgeniy Khramtsov1-2/+4
2017-01-13Implement database backend interface for MUC, BOSH and auth_anonyousEvgeniy Khramtsov1-8/+5
2017-01-02Update copyright date automatically (#1442)Badlop1-1/+1
2016-11-24Get rid of excessive (io)list_to_binary/1 callsEvgeniy Khramtsov1-5/+5
2016-07-29Switch workers from temporary to transientChristophe Romain1-1/+1
2016-07-25Rewrite mod_mam and mod_muc to use XML generatorEvgeniy Khramtsov1-21/+15
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-1/+1
2016-02-03Switch to Fast XML moduleMickael Remond1-8/+8