mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-26 15:28:28 -05:00
fixed rare bug in chat notify that appeared when your nickname is happenned at the end of the text
This commit is contained in:
parent
da088746de
commit
b128407159
@ -291,7 +291,7 @@ bool ChatLobbyUserNotify::checkWord(QString message, QString word)
|
||||
&& (!word.isEmpty())) {
|
||||
QString eow=" ~!@#$%^&*()_+{}|:\"<>?,./;'[]\\-="; // end of word
|
||||
bool bFirstCharEOW = (nFound==0)?true:(eow.indexOf(message.at(nFound-1)) != -1);
|
||||
bool bLastCharEOW = ((nFound+word.length()-1) < message.length())
|
||||
bool bLastCharEOW = (nFound+word.length() < message.length())
|
||||
?(eow.indexOf(message.at(nFound+word.length())) != -1)
|
||||
:true;
|
||||
bFound = (bFirstCharEOW && bLastCharEOW);
|
||||
|
Loading…
x
Reference in New Issue
Block a user