diff options
author | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-02-14 04:45:11 +0300 |
---|---|---|
committer | Bohdan Horbeshko <bodqhrohro@gmail.com> | 2022-02-14 04:45:11 +0300 |
commit | 72b336a5f5641adcfa535270862191d9072dba3c (patch) | |
tree | e65f5568ac7480b12bced13dee680b9d76890fbb /xmpp | |
parent | 915c40f1eed6ba139323c0fa15eed4ed3792f34b (diff) |
Support ! prefix for commands in addition to /
Diffstat (limited to 'xmpp')
-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 eeb9628..b4440a0 100644 --- a/xmpp/handlers.go +++ b/xmpp/handlers.go @@ -89,7 +89,7 @@ func HandleMessage(s xmpp.Sender, p stanza.Packet) { session.ProcessOutgoingMessage(toID, msg.Body, msg.From) return } else if msg.To == gatewayJid { - if strings.HasPrefix(msg.Body, "/") { + if strings.HasPrefix(msg.Body, "/") || strings.HasPrefix(msg.Body, "!") { response := session.ProcessTransportCommand(msg.Body, resource) if response != "" { gateway.SendMessage(msg.From, "", response, component) |