-- IRC Mod for Minetest -- By Diego Martínez -- -- This mod allows to tie a Minetest server to an IRC channel. -- -- This program is free software. It comes without any warranty, to -- the extent permitted by applicable law. You can redistribute it -- and/or modify it under the terms of the Do What The Fuck You Want -- To Public License, Version 2, as published by Sam Hocevar. See -- http://sam.zoy.org/wtfpl/COPYING for more details. -- -- ************************* -- ** BASIC USER SETTINGS ** -- ************************* -- Server to connect on joinplayer (string, default "irc.freenode.net") mt_irc.server = nil; -- Port to connect on joinplayer (number, default 6667) mt_irc.port = nil; -- Channel to connect on joinplayer (string, default "##mt-irc-mod") mt_irc.channel = nil; -- *********************** -- ** ADVANCED SETTINGS ** -- *********************** -- Time between chat updates in seconds (number, default 0.2). mt_irc.dtime = nil; -- Underlying socket timeout in seconds (number, default 1.0). mt_irc.timeout = nil; -- Nickname when using single conection (string, default "minetest-"..); -- ( is the server IP address packed as a 32 bit integer). mt_irc.server_nick = "HelloIRC"; -- Password to use when using single connection (string, default "") mt_irc.password = nil; -- The format of messages sent to IRC server (string, default "<$(name)> $(message)") -- See `README.txt' for the macros supported here. mt_irc.message_format_out = "<$(name)> $(message)"; -- The format of messages sent to IRC server (string, default "<$(name)@IRC> $(message)") -- See `README.txt' for the macros supported here. mt_irc.message_format_in = "<$(name)@IRC> $(message)"; -- Enable debug output (boolean, default false) mt_irc.debug = true; -- Whether to automatically join the channed when player joins -- (boolean, default true) mt_irc.auto_join = true; -- Whether to automatically connect to the server on mod load -- (boolean, default true) mt_irc.auto_connect = true;