Bug 128171

Summary: nicks with square brackets are never highlighted
Product: [Unmaintained] kopete Reporter: Max <mikh>
Component: Chat WindowAssignee: Kopete Developers <kopete-bugs-null>
Status: RESOLVED FIXED    
Severity: normal    
Priority: LO    
Version First Reported In: 0.12.6   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Max 2006-05-28 08:49:39 UTC
Version:           0.10.3 (using KDE KDE 3.4.2)
Installed from:    SuSE RPMs
Compiler:          using suse 10.0 rpms on amd64 
OS:                Linux

If my nick is [max-] then I get highlighting in any message that starts with <any letter>'m

For example message "I'm thinking of whatever" is highlighted as if it contained my nick.

This looks like its using regular expressions and does not espace the [] properly.
Comment 1 Will Stephenson 2006-11-06 00:34:49 UTC
now it's the other way round.
Comment 2 Roman Jarosz 2008-12-25 16:15:32 UTC
SVN commit 901466 by rjarosz:

Escape regexp characters from nickname when looking for nickname in message body and also don't use \\b because it doesn't work if [] is in nickname.

BUG: 128171



 M  +7 -4      kopetechatsession.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=901466