mirror of
https://github.com/minetest-mods/irc.git
synced 2024-12-27 09:10:21 +01:00
Add option to not send join and part messages to IRC
This commit is contained in:
parent
a25527100a
commit
8e4b863549
@ -4,7 +4,7 @@
|
||||
|
||||
minetest.register_on_joinplayer(function(player)
|
||||
local name = player:get_player_name()
|
||||
if mt_irc.connected then
|
||||
if mt_irc.connected and mt_irc.config.send_join_part then
|
||||
mt_irc:say("*** "..name.." joined the game")
|
||||
end
|
||||
end)
|
||||
@ -12,7 +12,7 @@ end)
|
||||
|
||||
minetest.register_on_leaveplayer(function(player)
|
||||
local name = player:get_player_name()
|
||||
if mt_irc.connected then
|
||||
if mt_irc.connected and mt_irc.config.send_join_part then
|
||||
mt_irc:say("*** "..name.." left the game")
|
||||
end
|
||||
end)
|
||||
|
@ -31,6 +31,7 @@ setting("string", "SASLUser", mt_irc.config.nick) -- SASL username
|
||||
setting("string", "SASLPass") -- SASL password
|
||||
setting("string", "channel", "##mt-irc-mod") -- Channel to join
|
||||
setting("string", "key") -- Key for the channel
|
||||
setting("bool", "send_join_part", true) -- Whether to send player join and part messages to the channel
|
||||
|
||||
-----------------------
|
||||
-- ADVANCED SETTINGS --
|
||||
|
Loading…
Reference in New Issue
Block a user