diff options
author | Attila Molnar <attilamolnar@hush.com> | 2016-08-22 16:46:44 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2016-08-22 16:46:44 +0200 |
commit | 90ea1b01b78a94486b8142808c06aacff543ca64 (patch) | |
tree | 50d3582ff28f56a3816307cc6e10fc4f775d2e2a /src/modules/m_knock.cpp | |
parent | 0562561425f133874685789269c8ab1aa053c95f (diff) |
Add stdalgo::string::equalsci and use it instead of irc::string for case-insensitive comparison
Diffstat (limited to 'src/modules/m_knock.cpp')
-rw-r--r-- | src/modules/m_knock.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp index a6352749f..cf623c4ab 100644 --- a/src/modules/m_knock.cpp +++ b/src/modules/m_knock.cpp @@ -98,14 +98,12 @@ class ModuleKnock : public Module void ReadConfig(ConfigStatus& status) CXX11_OVERRIDE { std::string knocknotify = ServerInstance->Config->ConfValue("knock")->getString("notify"); - irc::string notify(knocknotify.c_str()); - - if (notify == "numeric") + if (stdalgo::string::equalsci(knocknotify, "numeric")) { cmd.sendnotice = false; cmd.sendnumeric = true; } - else if (notify == "both") + else if (stdalgo::string::equalsci(knocknotify, "both")) { cmd.sendnotice = true; cmd.sendnumeric = true; |