diff options
| -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') |
