projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
62fc1ac
)
fixes #764 - client crashes on lines from nicks like "__"
author
Marcus Eggenberger
<egs@quassel-irc.org>
Sat, 8 Aug 2009 10:33:57 +0000
(12:33 +0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Sat, 8 Aug 2009 10:33:57 +0000
(12:33 +0200)
Nicks consisting only of underscores are no longer treated as a variant of some basename.
src/uisupport/uistyle.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/uistyle.cpp
b/src/uisupport/uistyle.cpp
index
18934d6
..
d020bb0
100644
(file)
--- a/
src/uisupport/uistyle.cpp
+++ b/
src/uisupport/uistyle.cpp
@@
-694,7
+694,8
@@
quint8 UiStyle::StyledMessage::senderHash() const {
int chopCount = 0;
while(nick.at(nick.count() - 1 - chopCount) == '_')
chopCount++;
- nick.chop(chopCount);
+ if(chopCount < nick.size())
+ nick.chop(chopCount);
}
quint16 hash = qChecksum(nick.toAscii().data(), nick.toAscii().size());
return (_senderHash = (hash & 0xf) + 1);