X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fhelperfuncs.cpp;h=6316d1e3432edaacbf3aa0045b91b4e26f635d3e;hb=001cd6b11eea25982973f1eb9736ab86b69eca05;hp=bebb22007b9558f4a054e00f887c0dbb6873c0f2;hpb=f71e6bf9cb41811f18864f5d4eecb26e29d03f25;p=user%2Fhenk%2Fcode%2Finspircd.git 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]; }