Fixed an issue with economy transfer

Updated trivia list
This commit is contained in:
Twentysix
2016-02-25 16:07:48 +01:00
parent d2f182fe0d
commit dcdfd2cee2
2 changed files with 16 additions and 2 deletions

View File

@@ -72,6 +72,9 @@ class Economy:
if author == user:
await self.bot.say("You can't transfer money to yourself.")
return
if sum < 1:
await self.bot.say("You need to transfer at least 1 credit.")
return
if self.account_check(user.id):
if self.enough_money(author.id, sum):
self.withdraw_money(author.id, sum)