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:
ab1b228
)
Update fishpond.last for slashes
author
Matthew Vernon
<matthewv@chiark.greenend.org.uk>
Tue, 6 Dec 2011 15:48:30 +0000
(15:48 +0000)
committer
Matthew Vernon
<matthewv@chiark.greenend.org.uk>
Tue, 6 Dec 2011 15:48:30 +0000
(15:48 +0000)
slash didn't update fishpond.last, which meant that ~blame #last
didn't work properly.
commands.py
patch
|
blob
|
history
diff --git
a/commands.py
b/commands.py
index 19f8c4b6327f9c577c6792fd91370603cd0d1c5a..8c22d293a09429aa2fab542f132376c17b1cb4e0 100755
(executable)
--- a/
commands.py
+++ b/
commands.py
@@
-125,6
+125,7
@@
def slashq(bot, cmd, nick, conn, public, cfg):
return
me = bot.connection.get_nickname()
slash_msg = random.choice(fishlist)
+ fishpond.last=slash_msg
# The bot won't slash people with themselves
if irc_lower(who[0]) == irc_lower(who[1]):
conn.notice(nick, "oooooh no missus!")