From 83fc42e9ce2d28069bbe1f739cccb75533b7d161 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Thu, 13 Sep 2012 20:25:41 +0200 Subject: m_shun Convert enabled commands to uppercase so they match correctly even if they're lowercase in the config --- src/modules/m_shun.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/modules/m_shun.cpp b/src/modules/m_shun.cpp index 197bbc1bf..78046954c 100644 --- a/src/modules/m_shun.cpp +++ b/src/modules/m_shun.cpp @@ -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"; -- cgit v1.2.3