make rule test completion be announced to irc
This commit is contained in:
parent
9014308fe3
commit
8a144a31e9
3
init.lua
3
init.lua
@ -203,6 +203,9 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
|
||||
minetest.set_player_privs(name, privs)
|
||||
minetest.log("action", "Granted " ..name.. " interact.")
|
||||
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
|
||||
elseif fields.submit then
|
||||
rule1 = 0
|
||||
|
Loading…
Reference in New Issue
Block a user