From dd23a58ed2e260044c9e6f5a7585c368dfe425f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20P=C3=B6sel?= Date: Wed, 9 Jul 2014 09:25:44 +0000 Subject: SeenPlugin: Don't monitor or show menuitem/userinfo for groupchats git-svn-id: http://svn.miranda-ng.org/main/trunk@9742 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/SeenPlugin/src/userinfo.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'plugins/SeenPlugin/src/userinfo.cpp') diff --git a/plugins/SeenPlugin/src/userinfo.cpp b/plugins/SeenPlugin/src/userinfo.cpp index 0f8ea6cc91..e27515a8f0 100644 --- a/plugins/SeenPlugin/src/userinfo.cpp +++ b/plugins/SeenPlugin/src/userinfo.cpp @@ -62,8 +62,10 @@ INT_PTR CALLBACK UserinfoDlgProc(HWND hdlg,UINT msg,WPARAM wparam,LPARAM lparam) int UserinfoInit(WPARAM wparam,LPARAM lparam) { - char *proto = GetContactProto((MCONTACT)lparam); - if ( IsWatchedProtocol(proto)) { + MCONTACT hContact = (MCONTACT)lparam; + char *szProto = GetContactProto(hContact); + + if (IsWatchedProtocol(szProto) && !db_get_b(hContact, szProto, "ChatRoom", false)) { OPTIONSDIALOGPAGE uip = { sizeof(uip) }; uip.hInstance = hInstance; uip.pszTemplate = MAKEINTRESOURCEA(IDD_USERINFO); -- cgit v1.2.3