diff options
Diffstat (limited to 'plugins/TabSRMM/src/hotkeyhandler.cpp')
-rw-r--r-- | plugins/TabSRMM/src/hotkeyhandler.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/hotkeyhandler.cpp b/plugins/TabSRMM/src/hotkeyhandler.cpp index 865f2a77af..af951250db 100644 --- a/plugins/TabSRMM/src/hotkeyhandler.cpp +++ b/plugins/TabSRMM/src/hotkeyhandler.cpp @@ -365,7 +365,11 @@ LONG_PTR CALLBACK HotkeyHandlerDlgProc(HWND hwndDlg, UINT msg, WPARAM wParam, LP else
SendMessage(hWnd, WM_CLOSE, 0, 1);
- CreateNewTabForContact((TContainerData*)wParam, lParam, true, true, false);
+ char *szProto = GetContactProto(lParam);
+ if (szProto != nullptr && db_get_b(lParam, szProto, "ChatRoom", 0))
+ ShowRoom((TContainerData*)wParam, SM_FindSessionByHCONTACT(lParam));
+ else
+ CreateNewTabForContact((TContainerData*)wParam, lParam, true, true, false);
}
}
}
|