Previously this would search all the blame databases. This is wrong,
it should search the one corresponding to the last fish. Now that we
have last_cfg, and the db info is in the cfg, we can do that.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
return
cwhat=' '.join(clist[2:])
if clist[1]=="#last":
return
cwhat=' '.join(clist[2:])
if clist[1]=="#last":
- ans=__getall(tdb,tdbk,fdb,fdbk,sdb,sdbk,fish.last)
+ if fish.last_cfg is None:
+ bot.automsg(public,nick,"Nothing")
+ return
+ xdb,xdbk = fish.last_cfg[7]
+ ans=__getcommits(xdb,xdbk,fish.last)
elif clist[1]=="#trouts" or clist[1]=="#trout":
ans=__getcommits(tdb,tdbk,cwhat)
elif clist[1]=="#flirts" or clist[1]=="#flirt":
elif clist[1]=="#trouts" or clist[1]=="#trout":
ans=__getcommits(tdb,tdbk,cwhat)
elif clist[1]=="#flirts" or clist[1]=="#flirt":