aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--xmpp/handlers.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/xmpp/handlers.go b/xmpp/handlers.go
index c6406e9..6fb1af2 100644
--- a/xmpp/handlers.go
+++ b/xmpp/handlers.go
@@ -760,6 +760,12 @@ func handleSetQueryCommand(s xmpp.Sender, iq *stanza.IQ, command *stanza.Command
} else {
cmdString = "/" + command.Node
}
+ } else if command.Action == stanza.CommandActionCancel {
+ answer.Payload = &stanza.Command{
+ SessionId: command.Node,
+ Node: command.Node,
+ Status: stanza.CommandStatusCancelled,
+ }
}
}
}