mirror of
https://github.com/inspircd/inspircd.git
synced 2025-03-10 11:09:04 -04:00
m_shun Convert enabled commands to uppercase so they match correctly even if they're lowercase in the config
This commit is contained in:
parent
e39da81824
commit
83fc42e9ce
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user