make jacobot / boxmein have blue nicks in save comments (hack)
This commit is contained in:
parent
f6d82b6f8a
commit
3cf5395697
@ -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()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user