projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb3bfb3
)
shame on me...
author
Marcus Eggenberger
<egs@quassel-irc.org>
Sun, 9 Aug 2009 16:41:40 +0000
(18:41 +0200)
committer
Marcus Eggenberger
<egs@quassel-irc.org>
Sun, 9 Aug 2009 16:41:40 +0000
(18:41 +0200)
src/uisupport/uistyle.cpp
patch
|
blob
|
history
diff --git
a/src/uisupport/uistyle.cpp
b/src/uisupport/uistyle.cpp
index
d020bb0
..
37faa1c
100644
(file)
--- a/
src/uisupport/uistyle.cpp
+++ b/
src/uisupport/uistyle.cpp
@@
-692,7
+692,7
@@
quint8 UiStyle::StyledMessage::senderHash() const {
QString nick = nickFromMask(sender()).toLower();
if(!nick.isEmpty()) {
int chopCount = 0;
- while(nick.at(nick.count() - 1 - chopCount) == '_')
+ while(
chopCount < nick.size() &&
nick.at(nick.count() - 1 - chopCount) == '_')
chopCount++;
if(chopCount < nick.size())
nick.chop(chopCount);