aboutsummaryrefslogtreecommitdiff
path: root/xmpp/handlers.go
diff options
context:
space:
mode:
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 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)