Correct typo causing war declaring to fail

This commit is contained in:
rubenwardy 2016-05-19 22:04:13 +01:00
parent ae9c820e03
commit c54d7e2bbc

View File

@ -320,7 +320,7 @@ minetest.register_on_player_receive_fields(function(player, formname, fields)
tname2 = string.match(key, "war_(.+)") tname2 = string.match(key, "war_(.+)")
if tname2 then if tname2 then
ctf.diplo.set(team, tname2,"war") ctf.diplo.set(tname, tname2, "war")
ctf.post(tname, { ctf.post(tname, {
msg = "You have declared war on " .. tname2 }) msg = "You have declared war on " .. tname2 })
ctf.post(tname2, { ctf.post(tname2, {