diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..68a49da --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/README.md b/README.md index 1c7a587..f541994 100644 --- a/README.md +++ b/README.md @@ -1,23 +1,30 @@ minetest CSM which records sent and received messages in the minetest log file. -= requirements = +requirements +------------ tested with minetest 0.4.17 and 5.0. only basic CSM need be enabled in 5.0, which is the default. -= installation = +installation +------------ -make sure the mod is installed at ~/.minetest/clientmods/chatlog +make sure the mod is installed at `~/.minetest/clientmods/chatlog` -make sure ~/.minetest/clientmods/mods.conf exists and contains: +make sure `~/.minetest/clientmods/mods.conf` exists and contains: +``` load_mod_chatlog = true +``` -logs will show up in ~/.minetest/debug.txt +logs will show up in `~/.minetest/debug.txt` -if you use another CSM that handles the *printing* of chat messages e.g. friendly_chat, you may have to put an entry like +if you use another CSM that handles the *printing* of chat messages e.g. friendly_chat or chat_highlights, +you may have to put an entry like +``` chatlog? +``` -into that other mod's depends.txt file. +into that other mod's `depends.txt` file. diff --git a/init.lua b/init.lua index ac9c849..80705c2 100644 --- a/init.lua +++ b/init.lua @@ -55,7 +55,7 @@ if minetest.register_on_connect then elseif minetest.register_on_mods_loaded then minetest.register_on_mods_loaded(set_my_name) else - set_my_name() + minetest.after(1, set_my_name) end