diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-01-08 13:59:57 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-01-08 13:59:57 +0300 |
commit | 9f04ed51bd26923afec70f086bdeba934fec32ba (patch) | |
tree | d3160232bbe0b64002b325c992c21194867a9989 /xmpp/handlers.go | |
parent | ee6653c0c6c09a5a38d1c1ef2be5318edfbe2e14 (diff) |
Make /s replace the whole message; fix replies and whitespace corruption
Diffstat (limited to 'xmpp/handlers.go')
-rw-r--r-- | xmpp/handlers.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go index 1b4f6a3..07c30ec 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -77,7 +77,7 @@ func HandleMessage(s xmpp.Sender, p stanza.Packet) { if len(toParts) > 1 { toIDInt, err := strconv.ParseInt(toID, 10, 64) if err == nil { - session.ProcessOutgoingMessage(toIDInt, msg.Body, 0, msg.From) + session.ProcessOutgoingMessage(toIDInt, msg.Body, msg.From) return } log.WithFields(log.Fields{ |