Permalink
Browse files

make jacobot / boxmein have blue nicks in save comments (hack)

  • Loading branch information...
jacob1 committed Jan 16, 2016
1 parent f6d82b6 commit 3cf539569778ce31a82428ccb9c1c9ae513ad5cf
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/client/Client.cpp
@@ -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()
)
);

0 comments on commit 3cf5395

Please sign in to comment.