From a22d0ceaee4945e9ca44d76b6a518ce50e24f006 Mon Sep 17 00:00:00 2001 From: LeMagnesium Date: Mon, 10 Nov 2014 20:54:48 +0100 Subject: [PATCH] IRC rules message in english - IRC's rules agreement message sent in english and french to players without shout, each 25 seconds. --- mods/_misc/noshout_messages.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mods/_misc/noshout_messages.lua b/mods/_misc/noshout_messages.lua index 8ab9d748..4a76e5fd 100644 --- a/mods/_misc/noshout_messages.lua +++ b/mods/_misc/noshout_messages.lua @@ -5,8 +5,9 @@ minetest.register_globalstep(function(dtime) TIMER = 0 for _,player in ipairs(minetest.get_connected_players()) do local name = player:get_player_name() - if not minetest.check_player_privs(name, {interact=true}) then + if not minetest.check_player_privs(name, {interact=shout}) then minetest.chat_send_player(name, "Hey " .. name .. " ! Pour pouvoir communiquer avec les autres joueurs sur ce serveur, tu dois lire les règles de l'irc et les accepter. Tape /irc.") + minetest.chat_send_player(name, "Hey " .. name .. " ! To speak to other people on this server, you have to read the rules of our irc channel and agree to them. Type /irc.") end end end) \ No newline at end of file