diff options
| author | 2016-08-23 19:37:03 +0200 | |
|---|---|---|
| committer | 2016-08-23 19:37:03 +0200 | |
| commit | bcdc3b0bb0ba957a9e99cd6db7f1242a9e587400 (patch) | |
| tree | fe0c0962384f5f8aa83658fd5897aa13e29ce22e /src/modules/m_knock.cpp | |
| parent | Merge pull request #1200 from SaberUK/master+travis (diff) | |
| parent | Update documentation in hashcomp.h (diff) | |
Merge branch 'master+ircstring'
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; |
