Skip to content

Commit

Permalink
Fix message color inherits nickname color tag
Browse files Browse the repository at this point in the history
  • Loading branch information
dragokas authored and olokos committed Apr 24, 2020
1 parent 49fc2dd commit 1dbdf45
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripting/chat-processor.sp
Original file line number Diff line number Diff line change
Expand Up @@ -377,6 +377,11 @@ public void Frame_OnChatMessage_SayText2(DataPack data)
if (iResults != Plugin_Changed && !bProcessColors || bRemoveColors)
Format(sMessage, sizeof(sMessage), "\x03%s", sMessage);

if (iResults == Plugin_Changed && bProcessColors)
{
Format(sMessage, sizeof(sMessage), "\x01%s", sMessage);
}

//Replace the specific characters for the name and message strings.
ReplaceString(sBuffer, sizeof(sBuffer), "{1}", sName);
ReplaceString(sBuffer, sizeof(sBuffer), "{2}", sMessage);
Expand Down

0 comments on commit 1dbdf45

Please sign in to comment.