Skip to content

Commit

Permalink
make jacobot / boxmein have blue nicks in save comments (hack)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacob1 committed Jan 16, 2016
1 parent f6d82b6 commit 3cf5395
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/client/Client.cpp
Expand Up @@ -1776,12 +1776,15 @@ RequestBroker::Request * Client::GetCommentsAsync(int saveID, int start, int cou
json::Number tempUserID = commentsArray[j]["UserID"];
json::String tempUsername = commentsArray[j]["Username"];
json::String tempFormattedUsername = commentsArray[j]["FormattedUsername"];
std::string formattedUsername = tempFormattedUsername.Value();
if (formattedUsername == "jacobot" || formattedUsername == "boxmein")
formattedUsername = "\bt" + formattedUsername;
json::String tempComment = commentsArray[j]["Text"];
commentArray->push_back(
new SaveComment(
tempUserID.Value(),
tempUsername.Value(),
tempFormattedUsername.Value(),
formattedUsername,
tempComment.Value()
)
);
Expand Down

0 comments on commit 3cf5395

Please sign in to comment.