diff options
author | Attila Molnar <attilamolnar@hush.com> | 2014-05-26 12:07:22 +0200 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2014-05-26 12:07:22 +0200 |
commit | 0b3f568a7506fb7ddc9a24d6ab12a969befb923d (patch) | |
tree | 3351ce34fb05378f5d0269ce505de2a4c7498d82 /src/helperfuncs.cpp | |
parent | e3bcf95ee996c058c73879c12ac5a487f8dcdf46 (diff) |
Switch to std::string::compare() from substr() in a couple of places
Diffstat (limited to 'src/helperfuncs.cpp')
-rw-r--r-- | src/helperfuncs.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helperfuncs.cpp b/src/helperfuncs.cpp index bebb22007..6316d1e34 100644 --- a/src/helperfuncs.cpp +++ b/src/helperfuncs.cpp @@ -478,7 +478,7 @@ ModResult OnCheckExemptionHandler::Call(User* user, Channel* chan, const std::st std::string::size_type pos = current.find(':'); if (pos == std::string::npos) continue; - if (current.substr(0,pos) == restriction) + if (!current.compare(0, pos, restriction)) minmode = current[pos+1]; } |