mirror of
https://github.com/minetest-mods/irc.git
synced 2025-06-30 07:00:33 +02:00
Add support for configurable coloring of IRC messages in-game
IRC channel messages are colored green by default IRC PMs are colored purple by default
This commit is contained in:
@ -23,7 +23,7 @@ local function setting(stype, name, default, required)
|
||||
value = minetest.setting_get("irc."..name)
|
||||
elseif stype == "number" then
|
||||
value = tonumber(minetest.setting_get("irc."..name))
|
||||
end
|
||||
end
|
||||
end
|
||||
if value == nil then
|
||||
if required then
|
||||
@ -65,4 +65,5 @@ setting("bool", "debug", false) -- Enable debug output
|
||||
setting("bool", "enable_player_part", true) -- Whether to enable players joining and parting the channel
|
||||
setting("bool", "auto_join", true) -- Whether to automatically show players in the channel when they join
|
||||
setting("bool", "auto_connect", true) -- Whether to automatically connect to the server on mod load
|
||||
|
||||
setting("string", "chat_color", "#339933") -- Color of IRC chat in-game, green by default
|
||||
setting("string", "pm_color", "#8800AA") -- Color of IRC PMs in-game, purple by default
|
||||
|
Reference in New Issue
Block a user