chiark / gitweb /
Make class vars into instance vars
[irc.git] / 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):