mirror of
https://github.com/The-Powder-Toy/The-Powder-Toy.git
synced 2025-08-13 03:44:05 +02:00
make jacobot / boxmein have blue nicks in save comments (hack)
This commit is contained in:
@@ -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()
|
||||||
)
|
)
|
||||||
);
|
);
|
||||||
|
Reference in New Issue
Block a user