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 != "" { if prefix != "" {
separator := c.getPrefixSeparator(chatId) separator := c.getPrefixSeparator(chatId)
newText.WriteString(separator) newText.WriteString(separator)
if reply != nil {
reply.End += uint64(len(separator)) reply.End += uint64(len(separator))
} }
}
newText.WriteString(text) newText.WriteString(text)
} }
text = newText.String() text = newText.String()