chiark
/
gitweb
/
~matthewv
/
irc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
FishPond: introduce new class and use in Servus-chiark
[irc.git]
/
commands.py
diff --git
a/commands.py
b/commands.py
index 964dacfa41a4c1e782d0ce643798f29606672802..6c5653dc9dd42119b80d1ea6a784007e762a1205 100755
(executable)
--- a/
commands.py
+++ b/
commands.py
@@
-53,6
+53,12
@@
def infoq(bot, cmd, nick, conn, public, karma):
(bot.revision.split()[1], bot.channel, conn.get_nickname(),
bot.owner, len(karma.keys())))
+class FishPond:
+ DoS=0
+ quotatime=0
+ last=""
+ last_cfg=None
+
# Check on fish stocks
def fish_quota(pond):
if pond.DoS: