summaryrefslogtreecommitdiff
path: root/plugins/SeenPlugin/src/userinfo.cpp
diff options
context:
space:
mode:
authorRobert Pösel <robyer@seznam.cz>2014-07-09 09:25:44 +0000
committerRobert Pösel <robyer@seznam.cz>2014-07-09 09:25:44 +0000
commitdd23a58ed2e260044c9e6f5a7585c368dfe425f8 (patch)
tree1b15fc82beb1560a00b52019e4146230ef249c99 /plugins/SeenPlugin/src/userinfo.cpp
parent87643a27f1e2b1bdfd30a06f162112908aa6ac17 (diff)
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
Diffstat (limited to 'plugins/SeenPlugin/src/userinfo.cpp')
-rw-r--r--plugins/SeenPlugin/src/userinfo.cpp6
1 files changed, 4 insertions, 2 deletions
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);