forked from mtcontrib/factions
Loyalty?
This commit is contained in:
parent
fc2b27abf1
commit
3145cdea9c
@ -244,7 +244,11 @@ function factions.member_add(name, object)
|
|||||||
if object.object ~= nil then
|
if object.object ~= nil then
|
||||||
object = object.object
|
object = object.object
|
||||||
end
|
end
|
||||||
|
if next(factions.get_factions(object)) ~= nil then
|
||||||
|
for k,v in pairs(factions.get_factions(object)) do
|
||||||
|
factions.member_remove(k,object)
|
||||||
|
end
|
||||||
|
end
|
||||||
if not factions.exists(name) then
|
if not factions.exists(name) then
|
||||||
print("Unable to add to NON existant faction >" .. name .. "<")
|
print("Unable to add to NON existant faction >" .. name .. "<")
|
||||||
return false
|
return false
|
||||||
|
Loading…
Reference in New Issue
Block a user