make rule test completion be announced to irc

This commit is contained in:
Elkien3 2019-02-25 07:26:50 +05:00 committed by Koldun
parent 9014308fe3
commit 8a144a31e9
Signed by: Koldun
GPG Key ID: 53DE683337F5D25F

View File

@ -203,6 +203,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
minetest.set_player_privs(name, privs) minetest.set_player_privs(name, privs)
minetest.log("action", "Granted " ..name.. " interact.") minetest.log("action", "Granted " ..name.. " interact.")
minetest.chat_send_all(name.. " passed the rules test, welcome him/her into CitySim") minetest.chat_send_all(name.. " passed the rules test, welcome him/her into CitySim")
if minetest.get_modpath("irc") ~= nil then
irc.say(name.. " passed the rules test, welcome him/her into CitySim")
end
end end
elseif fields.submit then elseif fields.submit then
rule1 = 0 rule1 = 0