diff options
Diffstat (limited to 'plugins/SeenPlugin/src/userinfo.cpp')
-rw-r--r-- | plugins/SeenPlugin/src/userinfo.cpp | 6 |
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);
|