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:
f5419e8
)
Correct our logic so we work with non-integer numbers of trouts
author
matthew
<matthew>
Wed, 6 Feb 2002 21:56:50 +0000
(21:56 +0000)
committer
matthew
<matthew>
Wed, 6 Feb 2002 21:56:50 +0000
(21:56 +0000)
acrobat-chiark-0.2.py
patch
|
blob
|
history
diff --git
a/acrobat-chiark-0.2.py
b/acrobat-chiark-0.2.py
index 640694042f32906a42fe38300d0b328bd90174f4..2c6b85c3cde505ecef0f9fa7b4ca2742c27e9c2b 100755
(executable)
--- a/
acrobat-chiark-0.2.py
+++ b/
acrobat-chiark-0.2.py
@@
-166,7
+166,7
@@
class Acrobat(SingleServerIRCBot):
conn.notice(nick, "Sorry, but %s is being a spoilsport." %
self.Boring_Git)
return
conn.notice(nick, "Sorry, but %s is being a spoilsport." %
self.Boring_Git)
return
- if self.cur_fish
=
= 0:
+ if self.cur_fish
<
= 0:
conn.notice(nick, "Fish stocks exhausted.")
else:
self.cur_fish -=1
conn.notice(nick, "Fish stocks exhausted.")
else:
self.cur_fish -=1
@@
-222,6
+222,8
@@
class Acrobat(SingleServerIRCBot):
if self.cur_fish>self.max_fish:
self.cur_fish=self.max_fish
self.quotatime=time.time()
if self.cur_fish>self.max_fish:
self.cur_fish=self.max_fish
self.quotatime=time.time()
+ print self.cur_fish
+ print self.quotatime
# quit irc
def quit(self, cmd, nick, conn, public):
# quit irc
def quit(self, cmd, nick, conn, public):