m_shun Convert enabled commands to uppercase so they match correctly even if they're lowercase in the config

This commit is contained in:
attilamolnar 2012-09-13 20:25:41 +02:00
parent e39da81824
commit 83fc42e9ce

View File

@ -215,6 +215,7 @@ class ModuleShun : public Module
{
ConfigReader MyConf;
std::string cmds = MyConf.ReadValue("shun", "enabledcommands", 0);
std::transform(cmds.begin(), cmds.end(), cmds.begin(), ::toupper);
if (cmds.empty())
cmds = "PING PONG QUIT";