diff options
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/modernb/modern_cachefuncs.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/plugins/modernb/modern_cachefuncs.cpp b/plugins/modernb/modern_cachefuncs.cpp index eee59c82f0..46e0d40b03 100644 --- a/plugins/modernb/modern_cachefuncs.cpp +++ b/plugins/modernb/modern_cachefuncs.cpp @@ -594,12 +594,9 @@ void Cache_GetFirstLineText(struct ClcData *dat, struct ClcContact *contact) lstrcpyn(nick, dbv.ptszVal, SIZEOF(contact->szText));
ModernDBFreeVariant(&dbv);
- if (_tcsnicmp(name, nick, lstrlen(name)) == 0) {
- // They are the same -> use the nick to keep the case
- lstrcpyn(contact->szText, nick, SIZEOF(contact->szText));
- } else if (_tcsnicmp(name, nick, lstrlen(nick)) == 0) {
- // They are the same -> use the nick to keep the case
- lstrcpyn(contact->szText, name, SIZEOF(contact->szText));
+ if (_tcsicmp(name, nick) == 0) {
+ // They are the same -> use the name to keep the case
+ lstrcpyn(contact->szText, name, SIZEOF(contact->szText));
} else {
// Append then
mir_sntprintf(contact->szText, SIZEOF(contact->szText), _T("%s - %s"), name, nick);
|