From d6db1c2a5dacd7169e4548d01ea9a1febd958dfb Mon Sep 17 00:00:00 2001 From: moneromooo Date: Mon, 22 Dec 2014 16:39:20 +0000 Subject: [PATCH] Let python know that yes, these are globals... --- tipbot.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tipbot.py b/tipbot.py index 21b9203..648dfcc 100644 --- a/tipbot.py +++ b/tipbot.py @@ -331,6 +331,7 @@ def Rain(nick,data): return def DisableWithdraw(): + global withdraw_disabled log_warn('DisableWithdraw: disabled') withdraw_disabled = True @@ -540,6 +541,7 @@ def GetTipbotBalance(nick,data): SendTo(nick,"Tipbot balance: %s (%s pending)" % (AmountToString(unlocked_balance), AmountToString(pending))) def EnableWithdraw(nick,data): + global withdraw_disabled log_info('EnableWithdraw: enabled by %s' % nick) withdraw_disabled = False