- minlen = Conf.ReadInteger("blockcaps", "minlen", "0", 0, true);
- if (percent < 0 || percent > 100)
+ minlen = Conf.ReadInteger("blockcaps", "minlen", "1", 0, true);
+ std::string hmap = Conf.ReadValue("blockcaps", "capsmap", 0);
+ if (hmap.empty())
+ hmap = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
+ memset(&capsmap, 0, 255);
+ for (std::string::iterator n = hmap.begin(); n != hmap.end(); n++)
+ capsmap[(unsigned char)*n] = 1;
+ if (percent < 1 || percent > 100)