Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/protocol.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ MESSAGES (with connection)
| 2 bytes number n | n bytes UTF-8 string |
+------------------+----------------------+

- "UTF-8 string": the chat message (plain text from client to server;
HTML from server to client)


- PROTMESSID_NETW_TRANSPORT_PROPS: Properties for network transport

Expand Down
2 changes: 1 addition & 1 deletion src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1395,7 +1395,7 @@ void CServer::CreateAndSendChatTextForAllConChannels ( const int iCurChanID
"<font color=""" + sCurColor + """>(" +
QTime::currentTime().toString ( "hh:mm:ss AP" ) + ") <b>" +
ChanName.toHtmlEscaped() +
"</b></font> " + strChatText;
"</b></font> " + strChatText.toHtmlEscaped();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I assume it works as intended. Should I test it again?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the change is trivial enough just to approve. I tested it:
image



// Send chat text to all connected clients ---------------------------------
Expand Down