mirror of
https://github.com/mt-mods/playerfactions.git
synced 2024-11-29 18:53:49 +01:00
bugfix cc.disband inverted password check
This commit is contained in:
parent
d072b2ba0c
commit
62684884b9
2
init.lua
2
init.lua
@ -241,7 +241,7 @@ function cc.disband(player_name, params, not_admin)
|
|||||||
elseif not_admin and player_name ~= factions.get_owner(faction_name) then
|
elseif not_admin and player_name ~= factions.get_owner(faction_name) then
|
||||||
return false, S("Permission denied: You are not the owner of that faction,"
|
return false, S("Permission denied: You are not the owner of that faction,"
|
||||||
.. " and don't have the @1 privilege.", factions.priv)
|
.. " and don't have the @1 privilege.", factions.priv)
|
||||||
elseif not_admin and factions.valid_password(faction_name, password) then
|
elseif not_admin and not factions.valid_password(faction_name, password) then
|
||||||
return false, S("Permission denied: Wrong password.")
|
return false, S("Permission denied: Wrong password.")
|
||||||
else
|
else
|
||||||
factions.disband_faction(faction_name)
|
factions.disband_faction(faction_name)
|
||||||
|
Loading…
Reference in New Issue
Block a user