Moved a function

This commit is contained in:
Cooldude2606
2017-09-14 18:16:34 +01:00
parent f1fa1e231f
commit 4e6e960cd2
2 changed files with 8 additions and 8 deletions

View File

@@ -38,6 +38,13 @@ function string_to_rank(string)
if #found_ranks == 1 then return found_ranks[1] end
end
end
-- surches the rank for a certain allow command
function rank_allowed(rank,is_allowed)
for _,allow in rank.allow do
if allow == is_allowed then return true end
end
return false
end
--Send a message to all members of this rank and above, if no rank given default is mod
--inv sends message to all lower ranks rather than higher
function rank_print(msg, rank, inv)