We are going to use this to say what kind of fish it was, in
~blame #last.
We also need to change the two places where this is destructured.
No functional change.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
thing=' '.join(l[2:])
bdb[thing]=commit
keys=bdb.keys()
thing=' '.join(l[2:])
bdb[thing]=commit
keys=bdb.keys()
+ return bdb,keys,filename
# load a file full of flirts or trouts
def __load(filename):
# load a file full of flirts or trouts
def __load(filename):
return tans+fans+sans
def blameq(bot,cmd,nick,conn,public,fish,cfgs):
return tans+fans+sans
def blameq(bot,cmd,nick,conn,public,fish,cfgs):
- tdb,tdbk = cfgs[0][7] # urgh, magic, to support magic knowledge below
- fdb,fdbk = cfgs[1][7]
- sdb,sdbk = cfgs[2][7]
+ 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]
clist=cmd.split()
if len(clist) < 2:
bot.automsg(public,nick,"Who or what do you want to blame?")
clist=cmd.split()
if len(clist) < 2:
bot.automsg(public,nick,"Who or what do you want to blame?")
if fish.last_cfg is None:
bot.automsg(public,nick,"Nothing")
return
if fish.last_cfg is None:
bot.automsg(public,nick,"Nothing")
return
- xdb,xdbk = fish.last_cfg[7]
+ xdb,xdbk,kindsfile = fish.last_cfg[7]
ans=__getcommits(xdb,xdbk,fish.last)
elif clist[1]=="#trouts" or clist[1]=="#trout":
ans=__getcommits(tdb,tdbk,cwhat)
ans=__getcommits(xdb,xdbk,fish.last)
elif clist[1]=="#trouts" or clist[1]=="#trout":
ans=__getcommits(tdb,tdbk,cwhat)