Fixed gift code messages not working correctly

This commit is contained in:
Chomp
2025-10-10 17:43:15 +01:00
parent 730883dc4a
commit a0937c2d33
@@ -144,7 +144,7 @@ public class PmcChatResponseService(
var giftKeys = giftService.GetGiftIds();
var randomGiftKey = randomUtil.GetArrayValue(giftKeys);
Regex.Replace(responseText, "/(%giftcode%)/gi", randomGiftKey); // TODO: does regex still work
responseText = Regex.Replace(responseText, "/(%giftcode%)/gi", randomGiftKey);
}
if (AppendSuffixToMessageEnd(isVictim))