summaryrefslogtreecommitdiff
path: root/src/core/stdchat
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-07-23 17:41:19 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-07-23 17:41:19 +0000
commit52cd1a8f41f0295da89db6983b10ea92f47dda10 (patch)
treee8256536edd42db3819cfa9233420c6102478fb2 /src/core/stdchat
parentf61a9fd5927291d98a15131150c3e308a42bbf63 (diff)
absolutely crazy code became a bit less crazy...
git-svn-id: http://svn.miranda-ng.org/main/trunk@5454 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/core/stdchat')
-rw-r--r--src/core/stdchat/src/tools.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/core/stdchat/src/tools.cpp b/src/core/stdchat/src/tools.cpp
index 6da05002a0..b72ee32fac 100644
--- a/src/core/stdchat/src/tools.cpp
+++ b/src/core/stdchat/src/tools.cpp
@@ -716,16 +716,15 @@ UINT CreateGCMenu(HWND hwndDlg, HMENU *hMenu, int iIndex, POINT pt, SESSION_INFO
}
else if (iIndex == 0)
{
- TCHAR szTemp[30], szTemp2[30];
- lstrcpyn(szTemp, TranslateT("&Message"), 24);
- if ( pszUID )
- mir_sntprintf( szTemp2, SIZEOF(szTemp2), _T("%s %s"), szTemp, pszUID);
+ TCHAR szTemp[30];
+ if (pszUID)
+ mir_sntprintf(szTemp, SIZEOF(szTemp), TranslateT("&Message %s"), pszUID);
else
- lstrcpyn(szTemp2, szTemp, 24);
+ lstrcpyn(szTemp, TranslateT("&Message"), SIZEOF(szTemp));
- if ( lstrlen(szTemp2) > 22 )
- lstrcpyn( szTemp2+22, _T("..."), 4 );
- ModifyMenu( *hMenu, ID_MESS, MF_STRING|MF_BYCOMMAND, ID_MESS, szTemp2 );
+ if (lstrlen(szTemp) > 22)
+ lstrcpy(szTemp+22, _T("..."));
+ ModifyMenu(*hMenu, ID_MESS, MF_STRING|MF_BYCOMMAND, ID_MESS, szTemp);
gcmi.Type = MENU_ON_NICKLIST;
}