blob: ed57888afbd875eb9fad7b0322919f9ccb73ddb3 (
plain)
| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
 | #include "stdafx.h"
INT_PTR IsContactPassed(WPARAM hContact, LPARAM /*lParam*/)
{
	char *szProto = Proto_GetBaseAccountName(hContact);
	if (szProto == nullptr)
		return CS_PASSED;
	if (!g_plugin.ProtoDisabled(szProto))
		return CS_PASSED;
	if (g_plugin.getByte(hContact, DB_KEY_ANSWERED))
		return CS_PASSED;
	if (Contact::OnList(hContact) && db_get_w(hContact, szProto, "SrvGroupId", -1) != 1)
		return CS_PASSED;
	if (IsExistMyMessage(hContact))
		return CS_PASSED;
	return CS_NOTPASSED;
}
 |