diff options
| author | 2012-09-13 20:25:41 +0200 | |
|---|---|---|
| committer | 2012-09-13 20:32:47 +0200 | |
| commit | 83fc42e9ce2d28069bbe1f739cccb75533b7d161 (patch) | |
| tree | dd4e3de10c0610cc8ff5d626b5be257ae8296d92 /src/modules | |
| parent | Fixed crash in m_mysql if a module is unloaded while executing (diff) | |
m_shun Convert enabled commands to uppercase so they match correctly even if they're lowercase in the config
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/m_shun.cpp | 1 |
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"; |
