chiark / gitweb /
blame: Put the filename in the loadblame result
[irc.git] / commands.py
index a5745091241a1ac87c649d2a85cfc5b49c98ebdb..8cc34f03ac6f4dc4997b4f435523842bc7b40601 100755 (executable)
@@ -315,9 +315,9 @@ def __getall(tdb,tdbk,fdb,fdbk,sdb,sdbk,what):
     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?")
@@ -327,7 +327,7 @@ def blameq(bot,cmd,nick,conn,public,fish,cfgs):
        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)