From 5d1bbfc6a06a22590c91dd4db7eeb5355fee3247 Mon Sep 17 00:00:00 2001 From: moneromooo Date: Sat, 28 Feb 2015 18:31:20 +0000 Subject: [PATCH] withdraw: fix withdraw with no amount nor payment id --- tipbot/modules/withdraw.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tipbot/modules/withdraw.py b/tipbot/modules/withdraw.py index d916664..a030060 100644 --- a/tipbot/modules/withdraw.py +++ b/tipbot/modules/withdraw.py @@ -146,7 +146,7 @@ def Withdraw(link,cmd): amount = GetParam(cmd,2) paymentid = GetParam(cmd,3) else: - if IsValidPaymentID(GetParam(cmd,2)): + if GetParam(cmd,2) and IsValidPaymentID(GetParam(cmd,2)): amount = None paymentid = GetParam(cmd,2) else: