From 59af32a7bae607b92fe9652953949c88ed01ec24 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 29 May 2019 14:50:03 +0100 Subject: [PATCH] fish: track last_cfg too No-one uses this yet. So no functional change. Signed-off-by: Ian Jackson --- Servus-chiark.py | 1 + commands.py | 2 ++ 2 files changed, 3 insertions(+) diff --git a/Servus-chiark.py b/Servus-chiark.py index 15ff6b5..2158903 100755 --- a/Servus-chiark.py +++ b/Servus-chiark.py @@ -52,6 +52,7 @@ class fish: Boring_Git='Nobody' quotatime=0 last="" + last_cfg=None # load the "blame" details for a file def loadblame(filename): diff --git a/commands.py b/commands.py index 5f436c6..adcd273 100755 --- a/commands.py +++ b/commands.py @@ -94,6 +94,7 @@ def troutq(bot, cmd, nick, conn, public, cfg): me = bot.connection.get_nickname() trout_msg = random.choice(fishlist) fishpond.last=trout_msg + fishpond.last_cfg=cfg # The bot won't trout or flirt with itself; if irc_lower(me) == irc_lower(target) or irc_lower(target) in synonyms: target = nick @@ -135,6 +136,7 @@ def slashq(bot, cmd, nick, conn, public, cfg): me = bot.connection.get_nickname() slash_msg = random.choice(fishlist) fishpond.last=slash_msg + fishpond.last_cfg=cfg # The bot won't slash people with themselves if irc_lower(who[0]) == irc_lower(who[1]): conn.notice(nick, "oooooh no missus!") -- 2.30.2