From 72b336a5f5641adcfa535270862191d9072dba3c Mon Sep 17 00:00:00 2001 From: Bohdan Horbeshko Date: Sun, 13 Feb 2022 20:45:11 -0500 Subject: Support ! prefix for commands in addition to / --- xmpp/handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmpp/handlers.go') 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) -- cgit v1.2.3