chiark
/
gitweb
/
~matthewv
/
irc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f8f3c5
)
Make class vars into instance vars
author
Ian Jackson
<ijackson@chiark.greenend.org.uk>
Thu, 30 May 2019 10:49:01 +0000
(11:49 +0100)
committer
Ian 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
patch
|
blob
|
history
diff --git
a/commands.py
b/commands.py
index 6c5653dc9dd42119b80d1ea6a784007e762a1205..02f23034a2428f5f45aa4fb1ac9cc69b4e1ff755 100755
(executable)
--- 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):