Skip to content

Commit

Permalink
update delim
Browse files Browse the repository at this point in the history
  • Loading branch information
hatersgit committed Nov 20, 2023
1 parent 0d3b135 commit 426fb6c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion modules/mod-Forge/src/TopicRouter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void TopicRouter::Route(Player* player, uint32& type, uint32& lang, std::string&
if (addonType != MSG_TYPE_FORGE)
return;

int delimeterIndex = msg.find('ƒ');
int delimeterIndex = msg.find('|');

if (delimeterIndex == std::string::npos)
return;
Expand Down
4 changes: 2 additions & 2 deletions src/server/game/Entities/Player/Player.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9629,14 +9629,14 @@ void Player::SendForgeUIMsg(std::string topic, std::string message) {

for (std::size_t i = 0; i < msgParts.size(); ++i)
{
std::string msg = topic + "}" + std::to_string(i + 1) + "}" + sizeStr + "ƒ" + msgParts[i];
std::string msg = topic + "}" + std::to_string(i + 1) + "}" + sizeStr + "|" + msgParts[i];
msg = MSG_TYPE_FORGE + "\t" + msg;
Whisper(msg, LANG_ADDON, this);
}
}
else
{
message = topic + "ƒ" + message;
message = topic + "|" + message;
message = MSG_TYPE_FORGE + "\t" + message;
Whisper(message, LANG_ADDON, this);
}
Expand Down

0 comments on commit 426fb6c

Please sign in to comment.