From 7f220458d4eee0b8b8f90d6e566b74d6e8c4b9e7 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 30 May 2019 11:49:01 +0100 Subject: [PATCH] Make class vars into instance vars Signed-off-by: Ian Jackson --- commands.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) 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): -- 2.30.2