chiark / gitweb /
Make class vars into instance vars
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 May 2019 10:49:01 +0000 (11:49 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 May 2019 11:04:41 +0000 (12:04 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
commands.py

index 6c5653dc9dd42119b80d1ea6a784007e762a1205..02f23034a2428f5f45aa4fb1ac9cc69b4e1ff755 100755 (executable)
@@ -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):