diff options
| author | Florian Fischer <florian.fl.fischer@fau.de> | 2019-06-09 16:21:46 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fl.fischer@fau.de> | 2019-06-09 16:21:46 +0200 |
| commit | cf133ab0f3b4af4a9e8aa1b5b9ecb81152bc9f1b (patch) | |
| tree | a71a0c77c52c8a61402988c92ab979d65d647694 | |
| parent | ecac9d9c0714c7ec3a63d67e077af15cacd3f02b (diff) | |
| download | geldschieberbot-cf133ab0f3b4af4a9e8aa1b5b9ecb81152bc9f1b.tar.gz geldschieberbot-cf133ab0f3b4af4a9e8aa1b5b9ecb81152bc9f1b.zip | |
support special users in transactions
This change allows "schieb" and "zieh" commands to interact with
balances from non human users like car balances.
| -rw-r--r-- | geldschieberbot.py | 4 |
1 files 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') |
