0003-_sender-became-private-use-sender-instead.patch
| src/uisupport/uistyle.cpp | ||
|---|---|---|
| 443 | 443 |
// To produce random like but stable nick colorings some sort of hashing should work best. |
| 444 | 444 |
// In this case we just use the qt function qChecksum which produces a |
| 445 | 445 |
// CRC16 hash. This should be fast and 16 bits are more than enough. |
| 446 |
hash = qChecksum(_sender.toAscii().data(), _sender.toAscii().size());
|
|
| 446 |
hash = qChecksum(sender().toAscii().data(), sender().toAscii().size());
|
|
| 447 | 447 |
return (UiStyle::FormatType)((((hash % 21) + 1) << 24) + 0x200); |
| 448 | 448 |
case Message::Notice: |
| 449 | 449 |
return UiStyle::NoticeMsg; break; |
| 450 |
- |
|