summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_modern/src/modern_clc.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clc.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.cpp b/plugins/Clist_modern/src/modern_clc.cpp
index 828ee36779..622deee541 100644
--- a/plugins/Clist_modern/src/modern_clc.cpp
+++ b/plugins/Clist_modern/src/modern_clc.cpp
@@ -164,7 +164,8 @@ static int clcHookDbEventAdded(WPARAM hContact, LPARAM hDbEvent)
ClcCacheEntry *pdnce = Clist_GetCacheEntry(hContact);
if (pdnce) {
pdnce->dwLastMsgTime = dbei.timestamp;
- Clist_Broadcast(CLM_AUTOREBUILD, hContact, 0);
+ if (g_CluiData.hasSort(SORTBY_LASTMSG))
+ Clist_Broadcast(CLM_AUTOREBUILD, hContact, 0);
}
}
}