fix case-insensitive search

This commit is contained in:
Denis Ryabov 2014-09-02 12:50:15 +04:00
parent 0a25bdead9
commit 2706e713a0

View File

@ -2471,7 +2471,7 @@ lazy_entry const* TextSearch::matchRawMessage(string const &rawMessage, libtorre
return 0; return 0;
} }
// fast check // fast check
if( mode != TEXTSEARCH_ANY && rawMessage.find(keywords[0]) == string::npos ) { if( !caseInsensitive && mode != TEXTSEARCH_ANY && rawMessage.find(keywords[0]) == string::npos ) {
return 0; return 0;
} }