Crash hotfix for the ANNOYING PALOCHKA fix

This commit is contained in:
Bohdan Horbeshko 2026-06-20 12:57:02 -04:00
parent 1c160a8a13
commit bc5e8f1217

View file

@ -1275,8 +1275,10 @@ func (c *Client) ProcessIncomingMessage(chatId int64, message *client.Message) {
if prefix != "" {
separator := c.getPrefixSeparator(chatId)
newText.WriteString(separator)
if reply != nil {
reply.End += uint64(len(separator))
}
}
newText.WriteString(text)
}
text = newText.String()