Skip to content

Commit

Permalink
Revert " Fix messages display"
Browse files Browse the repository at this point in the history
This reverts commit 8fc3d64.
  • Loading branch information
CoBC committed Jan 20, 2021
1 parent 8fc3d64 commit b7238d3
Showing 1 changed file with 2 additions and 20 deletions.
22 changes: 2 additions & 20 deletions Client/TeamTalkClassic/gui/ChatRichEditCtrl.cpp
Expand Up @@ -222,27 +222,9 @@ CString CChatRichEditCtrl::AddMessage(CString szNick, CString szMessage)
int nOldLineCount = GetLineCount();
CString name;
if(m_bShowTimeStamp)
{
if(nOldLineCount > 1)
{
name.Format(_T("\r\n%s <%s>\r\n"), GetChatTime(), szNick);
}
else
{
name.Format(_T("%s <%s>\r\n"), GetChatTime(), szNick);
}
}
name.Format(_T("%s<%s>\r\n"), (nOldLineCount > 1 ? _T("\r\n") : _T("")), GetChatTime(), szNick);
else
{
if(nOldLineCount > 1)
{
name.Format(_T("\r\n<%s>\r\n"), szNick);
}
else
{
name.Format(_T("<%s>\r\n"), szNick);
}
}
name.Format(_T("<%s>\r\n"), (nOldLineCount > 1 ? _T("\r\n") : _T("")), szNick);
//insert name
SetSel(GetTextLength(),GetTextLength());
SetSelectionCharFormat(cf);
Expand Down

0 comments on commit b7238d3

Please sign in to comment.