mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-11-29 10:43:50 +01:00
unreachable comments
This commit is contained in:
parent
b3650118d2
commit
bfc9f8fead
2
init.lua
2
init.lua
@ -419,6 +419,7 @@ function cc.kick(player_name, params, not_admin)
|
|||||||
if factions.leave_faction(faction_name, target_name) then
|
if factions.leave_faction(faction_name, target_name) then
|
||||||
return true, S("Kicked @1 from faction.", target_name)
|
return true, S("Kicked @1 from faction.", target_name)
|
||||||
else
|
else
|
||||||
|
-- SwissalpS is quite positive that this portion is unreachable
|
||||||
return false, S("Error kicking @1 from faction.", target_name)
|
return false, S("Error kicking @1 from faction.", target_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -520,6 +521,7 @@ function cc.invite(_, params, not_admin)
|
|||||||
if factions.join_faction(faction_name, target_name) then
|
if factions.join_faction(faction_name, target_name) then
|
||||||
return true, S("@1 is now a member of faction @2.", target_name, faction_name)
|
return true, S("@1 is now a member of faction @2.", target_name, faction_name)
|
||||||
else
|
else
|
||||||
|
-- is this portion ever reachable at all?
|
||||||
return false, S("Error adding @1 to @2.", target_name, faction_name)
|
return false, S("Error adding @1 to @2.", target_name, faction_name)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user