chiark / gitweb /
Update fishpond.last for slashes
authorMatthew Vernon <matthewv@chiark.greenend.org.uk>
Tue, 6 Dec 2011 15:48:30 +0000 (15:48 +0000)
committerMatthew 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

index 19f8c4b6327f9c577c6792fd91370603cd0d1c5a..8c22d293a09429aa2fab542f132376c17b1cb4e0 100755 (executable)
@@ -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!")