From d7382326906b9f3bdd66704dd1b41f9299c1daa6 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 20 Jul 2013 13:23:20 +0000 Subject: protocol helper for detecting chats: isChatRoom git-svn-id: http://svn.miranda-ng.org/main/trunk@5428 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- include/m_protoint.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include') diff --git a/include/m_protoint.h b/include/m_protoint.h index 89218c00f4..3a6586fef2 100644 --- a/include/m_protoint.h +++ b/include/m_protoint.h @@ -65,6 +65,7 @@ struct PROTO_INTERFACE : public MZeroedObject __forceinline bool getBool(const char *name, bool defaultValue) { return ProtoGetBool0(this, name, defaultValue); } __forceinline bool getBool(HANDLE hContact, const char *name, bool defaultValue) { return ProtoGetBool(this, hContact, name, defaultValue); } + __forceinline bool isChatRoom(HANDLE hContact) { return getBool(hContact, "ChatRoom", false); } __forceinline int getByte(const char *name, BYTE defaultValue) { return ProtoGetByte0(this, name, defaultValue); } __forceinline int getByte(HANDLE hContact, const char *name, BYTE defaultValue) { return ProtoGetByte(this, hContact, name, defaultValue); } -- cgit v1.2.3