summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-09-13 20:25:41 +0200
committerattilamolnar <attilamolnar@hush.com>2012-09-13 20:32:47 +0200
commit83fc42e9ce2d28069bbe1f739cccb75533b7d161 (patch)
treedd4e3de10c0610cc8ff5d626b5be257ae8296d92
parente39da8182472ffa85819110f199bc8b1cfc19b07 (diff)
m_shun Convert enabled commands to uppercase so they match correctly even if they're lowercase in the config
-rw-r--r--src/modules/m_shun.cpp1
1 files changed, 1 insertions, 0 deletions
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";