quassel-underscorefix.patch
src/uisupport/uistyle.cpp | ||
---|---|---|
692 | 692 |
QString nick = nickFromMask(sender()).toLower(); |
693 | 693 |
if(!nick.isEmpty()) { |
694 | 694 |
int chopCount = 0; |
695 |
while(nick.at(nick.count() - 1 - chopCount) == '_')
|
|
695 |
while((nick.count() - 1 - chopCount >= 0) && (nick.at(nick.count() - 1 - chopCount) == '_'))
|
|
696 | 696 |
chopCount++; |
697 | 697 |
if(chopCount < nick.size()) |
698 | 698 |
nick.chop(chopCount); |