Fixed syntax errors

This commit is contained in:
Anthony Recascino 2016-07-30 00:22:28 -04:00
parent 97a3bab635
commit e82a02e3c9
2 changed files with 3 additions and 3 deletions

View File

@ -189,7 +189,7 @@ function factions_chat.cmdhandler(playername,parameter)
end end
end end
--end --end
if cmd == "
if cmd == "join" then if cmd == "join" then
if params[2] ~= nil then if params[2] ~= nil then
--check for invitation --check for invitation

View File

@ -263,7 +263,7 @@ function factions.member_add(name, object)
factions.data.objects[new_entry.name].factions[name] = true factions.data.objects[new_entry.name].factions[name] = true
factions.dynamic_data.membertable[name][new_entry.name] = true factions.dynamic_data.membertable[name][new_entry.name] = true
factions.data.factions[name].invitations[new_entry.name] = nil factions.data.factions[name].invitations[new_entry.name] = nil
if factions.data.factions[name].owner == "" if factions.data.factions[name].owner == "" then
factions.data.factions[name].owner = object.get_player_name() factions.data.factions[name].owner = object.get_player_name()
factions.set_admin(name,object.get_player_name(), true) factions.set_admin(name,object.get_player_name(), true)
end end
@ -334,7 +334,7 @@ function factions.member_remove(name,object)
factions.save() factions.save()
return true return true
end end
if factions.data.objects[id].factions[name].owner == object.get_player_name() if factions.data.objects[id].factions[name].owner == object.get_player_name() then
factions.delete_faction(name) factions.delete_faction(name)
end end