From: Ian Jackson Date: Thu, 30 May 2019 10:49:01 +0000 (+0100) Subject: Make class vars into instance vars X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~matthewv/git?a=commitdiff_plain;h=7f220458d4eee0b8b8f90d6e566b74d6e8c4b9e7;hp=4f8f3c5d1074c14cd5e692f0544301adebde04d5;p=irc.git Make class vars into instance vars Signed-off-by: Ian Jackson --- diff --git a/commands.py b/commands.py index 6c5653d..02f2303 100755 --- a/commands.py +++ b/commands.py @@ -54,10 +54,11 @@ def infoq(bot, cmd, nick, conn, public, karma): bot.owner, len(karma.keys()))) class FishPond: - DoS=0 - quotatime=0 - last="" - last_cfg=None + def __init__(fishpond): + fishpond.last="" + fishpond.last_cfg=None + fishpond.DoS=0 + fishpond.quotatime=0 # Check on fish stocks def fish_quota(pond):