aboutsummaryrefslogtreecommitdiff
path: root/xmpp/handlers.go
diff options
context:
space:
mode:
authorBohdan Horbeshko <bodqhrohro@gmail.com>2022-01-08 13:59:57 +0300
committerBohdan Horbeshko <bodqhrohro@gmail.com>2022-01-08 13:59:57 +0300
commit9f04ed51bd26923afec70f086bdeba934fec32ba (patch)
treed3160232bbe0b64002b325c992c21194867a9989 /xmpp/handlers.go
parentee6653c0c6c09a5a38d1c1ef2be5318edfbe2e14 (diff)
Make /s replace the whole message; fix replies and whitespace corruption
Diffstat (limited to 'xmpp/handlers.go')
-rw-r--r--xmpp/handlers.go2
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{