summaryrefslogtreecommitdiff
path: root/plugins/Scriver/src
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Scriver/src')
-rw-r--r--plugins/Scriver/src/chat/tools.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/Scriver/src/chat/tools.cpp b/plugins/Scriver/src/chat/tools.cpp
index 804c347768..998785dc09 100644
--- a/plugins/Scriver/src/chat/tools.cpp
+++ b/plugins/Scriver/src/chat/tools.cpp
@@ -692,16 +692,15 @@ UINT CreateGCMenu(HWND hwnd, HMENU *hMenu, int iIndex, POINT pt, SESSION_INFO *s
}
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"), szTemp, pszUID);
else
- lstrcpyn(szTemp2, szTemp, 24);
+ lstrcpyn(szTemp, TranslateT("&Message"), 24);
- if ( lstrlen(szTemp2) > 22 )
- lstrcpyn( szTemp2+22, _T("..."), 4 );
- ModifyMenu( *hMenu, ID_MESS, MF_STRING|MF_BYCOMMAND, ID_MESS, szTemp2 );
+ if (lstrlen(szTemp) > 22)
+ lstrcpyn(szTemp + 22, _T("..."), 4);
+ ModifyMenu(*hMenu, ID_MESS, MF_STRING | MF_BYCOMMAND, ID_MESS, szTemp);
gcmi.Type = MENU_ON_NICKLIST;
}