mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-27 07:47:03 -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())) {
|
&& (!word.isEmpty())) {
|
||||||
QString eow=" ~!@#$%^&*()_+{}|:\"<>?,./;'[]\\-="; // end of word
|
QString eow=" ~!@#$%^&*()_+{}|:\"<>?,./;'[]\\-="; // end of word
|
||||||
bool bFirstCharEOW = (nFound==0)?true:(eow.indexOf(message.at(nFound-1)) != -1);
|
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)
|
?(eow.indexOf(message.at(nFound+word.length())) != -1)
|
||||||
:true;
|
:true;
|
||||||
bFound = (bFirstCharEOW && bLastCharEOW);
|
bFound = (bFirstCharEOW && bLastCharEOW);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user