Commit e30aa4f7 authored by Jens Reidel's avatar Jens Reidel

Merge branch 'patch-1' into 'v4'

fix an exploit

See merge request !620
parents 2cf6f4f0 d3ed1071
Pipeline #1705 passed with stage
in 18 seconds
......@@ -901,6 +901,7 @@ class Guild(commands.Cog):
if not members:
return await ctx.send(_("You can't distribute money to nobody."))
members = set(members) # removes dupes
# int() rounds down as to not go over the money limit
# we need to update the amount after rounding down too to avoid losing money
for_each = int(amount / len(members))
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment