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/TipperYM/src/stdafx.h | 1 + plugins/TipperYM/src/subst.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) (limited to 'plugins/TipperYM/src') diff --git a/plugins/TipperYM/src/stdafx.h b/plugins/TipperYM/src/stdafx.h index 1bc6c5d898..0d20d28662 100644 --- a/plugins/TipperYM/src/stdafx.h +++ b/plugins/TipperYM/src/stdafx.h @@ -34,6 +34,7 @@ Boston, MA 02111-1307, USA. #include #include #include +#include #include #include #include diff --git a/plugins/TipperYM/src/subst.cpp b/plugins/TipperYM/src/subst.cpp index 45e7abd4d5..7d0eda0ac3 100644 --- a/plugins/TipperYM/src/subst.cpp +++ b/plugins/TipperYM/src/subst.cpp @@ -67,7 +67,7 @@ bool CheckContactType(MCONTACT hContact, const DISPLAYITEM &di) char *szProto = Proto_GetBaseAccountName(hContact); if (szProto) { - if (db_get_b(hContact, szProto, "ChatRoom", 0) != 0) + if (Contact_IsGroupChat(hContact, szProto)) return di.type == DIT_CHATS; else return di.type == DIT_CONTACTS; -- cgit v1.2.3