chiark / gitweb /
blame: Move blame db information into the cfg
[irc.git] / commands.py
index 9e90ad9b17f8bd18b7c616d98e69d3c97672219e..a8499587f222c016b408000b72059b5e7314f431 100755 (executable)
@@ -314,7 +314,10 @@ 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,tcfg,tdb,tdbk,fcfg,fdb,fdbk,scfg,sdb,sdbk):
+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]
     clist=cmd.split()
     if len(clist) < 2:
        bot.automsg(public,nick,"Who or what do you want to blame?")