From d1ce225698f86c2b2bc2553416da7e97feb58362 Mon Sep 17 00:00:00 2001 From: Tobias Weimer Date: Mon, 24 Feb 2014 18:50:28 +0000 Subject: Now tabsrmm will use the custom group chat name in the title bar. git-svn-id: http://svn.miranda-ng.org/main/trunk@8265 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/chat/window.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'plugins/TabSRMM') diff --git a/plugins/TabSRMM/src/chat/window.cpp b/plugins/TabSRMM/src/chat/window.cpp index 3c8e9420f2..15569b1980 100644 --- a/plugins/TabSRMM/src/chat/window.cpp +++ b/plugins/TabSRMM/src/chat/window.cpp @@ -2013,17 +2013,17 @@ INT_PTR CALLBACK RoomWndProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar case GCW_CHATROOM: hIcon = (dat->wStatus <= ID_STATUS_OFFLINE) ? LoadSkinnedProtoIcon(si->pszModule, ID_STATUS_OFFLINE) : LoadSkinnedProtoIcon(si->pszModule, dat->wStatus); mir_sntprintf(szTemp, SIZEOF(szTemp), - (si->nUsersInNicklist == 1) ? TranslateT("%s: Chat Room (%u user%s)") : - TranslateT("%s: Chat Room (%u users%s)"), - si->ptszName, si->nUsersInNicklist, si->bFilterEnabled ? TranslateT(", event filter active") : _T("")); + (si->nUsersInNicklist == 1) ? TranslateT("%s: Chat Room (%u user%s)") : TranslateT("%s: Chat Room (%u users%s)"), + szNick, si->nUsersInNicklist, si->bFilterEnabled ? TranslateT(", event filter active") : _T("")); break; case GCW_PRIVMESS: - mir_sntprintf(szTemp, SIZEOF(szTemp), - (si->nUsersInNicklist == 1) ? TranslateT("%s: Message Session") : - TranslateT("%s: Message Session (%u users)"), si->ptszName, si->nUsersInNicklist); + if(si->nUsersInNicklist == 1) + mir_sntprintf(szTemp, SIZEOF(szTemp), TranslateT("%s: Message Session"), szNick); + else + mir_sntprintf(szTemp, SIZEOF(szTemp), TranslateT("%s: Message Session (%u users)"), szNick, si->nUsersInNicklist); break; case GCW_SERVER: - mir_sntprintf(szTemp, SIZEOF(szTemp), _T("%s: Server"), si->ptszName); + mir_sntprintf(szTemp, SIZEOF(szTemp), _T("%s: Server"), szNick); hIcon = LoadIconEx(IDI_CHANMGR, "window", 16, 16); break; } -- cgit v1.2.3