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

This commit is contained in:
jacob1 2016-01-16 11:39:04 -05:00
parent f6d82b6f8a
commit 3cf5395697

View File

@ -1776,12 +1776,15 @@ RequestBroker::Request * Client::GetCommentsAsync(int saveID, int start, int cou
json::Number tempUserID = commentsArray[j]["UserID"]; json::Number tempUserID = commentsArray[j]["UserID"];
json::String tempUsername = commentsArray[j]["Username"]; json::String tempUsername = commentsArray[j]["Username"];
json::String tempFormattedUsername = commentsArray[j]["FormattedUsername"]; 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"]; json::String tempComment = commentsArray[j]["Text"];
commentArray->push_back( commentArray->push_back(
new SaveComment( new SaveComment(
tempUserID.Value(), tempUserID.Value(),
tempUsername.Value(), tempUsername.Value(),
tempFormattedUsername.Value(), formattedUsername,
tempComment.Value() tempComment.Value()
) )
); );