chiark / gitweb /
blame: Move blame db information into the cfg
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Wed, 29 May 2019 14:05:56 +0000 (15:05 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 30 May 2019 09:56:56 +0000 (10:56 +0100)
commit129d1b9256f7020515e6ccfd2dcdab26d0908eec
tree4a881960cc3200551cd42d195a2ed02710ff658a
parent5bf30b6ddca2d6aa9384917324e442415368b799
blame: Move blame db information into the cfg

These should never have been separate.

We abolish the ad-hoc tbdb, fbdbk etc. variables.  Instead, we put
this all in the cfg.  It is OK to extend the cfg since the code does
not destructure it but instead always indexes it.  So bot instances
without blame will not mind.

blameq needs to fish it out again for the benefit of the open-coded
conditions on "#trouts" etc.  I'm not fixing that right now.

The deleted lines like this
  tbdb,tbdbk=loadblame("trouts")
have different variable names than the inserted lines like this
  tdb,tdbk = cfgs[0][7]
because, unaccountably, the global variable names are different to
the local variables inside blameq.

No functional change.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Servus-chiark.py
commands.py