From cd4272ca22d47cdf673bfb0e5ec353acca3d9569 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 16 Jul 2022 21:23:06 +0300 Subject: Contact_IsGroupChat - a helper to detect chat rooms --- plugins/AutoShutdown/src/watcher.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/AutoShutdown/src') diff --git a/plugins/AutoShutdown/src/watcher.cpp b/plugins/AutoShutdown/src/watcher.cpp index b7135921f4..4408aebc68 100644 --- a/plugins/AutoShutdown/src/watcher.cpp +++ b/plugins/AutoShutdown/src/watcher.cpp @@ -150,7 +150,7 @@ static BOOL CheckAllContactsOffline(void) for (auto &hContact : Contacts()) { char *pszProto = Proto_GetBaseAccountName(hContact); if (pszProto != nullptr && Proto_GetStatus(pszProto) != ID_STATUS_OFFLINE) { - if (db_get_b(hContact, pszProto, "ChatRoom", 0)) continue; + if (Contact_IsGroupChat(hContact, pszProto)) continue; if (db_get_w(hContact, pszProto, "Status", 0) != ID_STATUS_OFFLINE) { if (fSmartCheck) { if (Contact_IsHidden(hContact)) continue; -- cgit v1.2.3