chiark / gitweb /
blameq: Rename fish variable to fishpond
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 May 2019 10:31:35 +0000 (11:31 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 May 2019 11:11:09 +0000 (12:11 +0100)
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 <ijackson@chiark.greenend.org.uk>
commands.py

index bb24cac2d0e4c4c7a247da5528fe0008aaf84483..1d29fd7f28fa0b39f13c6fe1d250c47e1fa65144 100755 (executable)
@@ -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":