From 5bf30b6ddca2d6aa9384917324e442415368b799 Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Wed, 29 May 2019 14:55:06 +0100 Subject: [PATCH] fish: Pass cfgs to blameq This open-coding of three separate things, with blameq having magic knowledge of which one is which, is completely wrong. blameq should take a list. The various Xdb Xdbk should in the cfgs too. A step towards this is for blameq to get the cfgs. No functional change. Signed-off-by: Ian Jackson --- Servus-chiark.py | 5 ++++- commands.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Servus-chiark.py b/Servus-chiark.py index 2158903..828a17f 100755 --- a/Servus-chiark.py +++ b/Servus-chiark.py @@ -222,7 +222,10 @@ commands = {"karma": (c.karmaq,karmadb), "nws": (c.nsfwq,urldb), "units": c.unitq, "currency":c.currencyq, - "blame": (c.blameq,fish,tbdb,tbdbk,fbdb,fbdbk,sbdb,sbdbk), + "blame": (c.blameq,fish, + troutcfg,tbdb,tbdbk, + flirtcfg,fbdb,fbdbk, + slashcfg,sbdb,sbdbk), "help": c.helpq, "say": c.sayq, "do": c.doq, diff --git a/commands.py b/commands.py index adcd273..9e90ad9 100755 --- a/commands.py +++ b/commands.py @@ -314,7 +314,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,tdb,tdbk,fdb,fdbk,sdb,sdbk): +def blameq(bot,cmd,nick,conn,public,fish,tcfg,tdb,tdbk,fcfg,fdb,fdbk,scfg,sdb,sdbk): clist=cmd.split() if len(clist) < 2: bot.automsg(public,nick,"Who or what do you want to blame?") -- 2.30.2