From cf133ab0f3b4af4a9e8aa1b5b9ecb81152bc9f1b Mon Sep 17 00:00:00 2001 From: Florian Fischer Date: Sun, 9 Jun 2019 16:21:46 +0200 Subject: support special users in transactions This change allows "schieb" and "zieh" commands to interact with balances from non human users like car balances. --- geldschieberbot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/geldschieberbot.py b/geldschieberbot.py index fe1f210..80dedb7 100644 --- a/geldschieberbot.py +++ b/geldschieberbot.py @@ -288,9 +288,9 @@ def transaction(sender, args, msg): else: sender = num2name[sender] - if args[1] in name2num: + if args[1] in balance: recipient, amount = args[1:3] - elif args[2] in name2num: + elif args[2] in balance: amount, recipient = args[1:3] else: send('ERROR: recipient not known') -- cgit v1.2.3