Option to select if chanhistory is on for bots

I saw @krsnapc fork inspircd and add this possibility: https://github.com/krsnapc/inspircd/commit/b3e00f587f312031eb735e33e9f292d15038c17a

I think he solved it in an unelegant way, but I agree it's sensible functionality, so here's my take on it.