From b2b8e312bcdcc7a65e57f3db168983e328a8e06a Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Thu, 30 May 2019 11:31:35 +0100 Subject: [PATCH] blameq: Rename fish variable to fishpond This is now always an instance of FishPond. Using the same name as elsewhere in commands.py is less confusing. No functional change. Signed-off-by: Ian Jackson --- commands.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/commands.py b/commands.py index bb24cac..1d29fd7 100755 --- a/commands.py +++ b/commands.py @@ -323,7 +323,7 @@ def __getall(tdb,tdbk,fdb,fdbk,sdb,sdbk,what): sans=__getcommits(sdb,sdbk,what) return tans+fans+sans -def blameq(bot,cmd,nick,conn,public,fish,cfgs): +def blameq(bot,cmd,nick,conn,public,fishpond,cfgs): tdb,tdbk,x = cfgs[0][7] # urgh, magic, to support magic knowledge below fdb,fdbk,x = cfgs[1][7] sdb,sdbk,x = cfgs[2][7] @@ -334,11 +334,11 @@ def blameq(bot,cmd,nick,conn,public,fish,cfgs): cwhat=' '.join(clist[2:]) kindsfile = "fish?" if clist[1]=="#last": - if fish.last_cfg is None: + if fishpond.last_cfg is None: bot.automsg(public,nick,"Nothing") return - xdb,xdbk,kindsfile = fish.last_cfg[7] - ans=__getcommits(xdb,xdbk,fish.last) + xdb,xdbk,kindsfile = fishpond.last_cfg[7] + ans=__getcommits(xdb,xdbk,fishpond.last) elif clist[1]=="#trouts" or clist[1]=="#trout": ans=__getcommits(tdb,tdbk,cwhat) elif clist[1]=="#flirts" or clist[1]=="#flirt": -- 2.30.2