commit 89e6cc69a7f12418618f97fecc0c1142858492ad
Author: Wim <wim@42.be>
Date: Wed Apr 24 22:47:37 2019 +0000
diff --git a/gateway/gateway.go b/gateway/gateway.go
index a9c331b..b875cca 100644
--- a/gateway/gateway.go
+++ b/gateway/gateway.go
@@ -57210 +57212 @@ func (gw *Gateway) modifySendMessageTengo(origmsg *config.Message, msg *config.M
_ = s.Add("inProtocol", origmsg.Protocol)
_ = s.Add("inChannel", origmsg.Channel)
_ = s.Add("inGateway", origmsg.Gateway)
+ _ = s.Add("inEvent", origmsg.Event)
_ = s.Add("outAccount", br.Account)
_ = s.Add("outProtocol", br.Protocol)
_ = s.Add("outChannel", msg.Channel)
_ = s.Add("outGateway", gw.Name)
+ _ = s.Add("outEvent", msg.Event)
_ = s.Add("msgText", msg.Text)
_ = s.Add("msgUsername", msg.Username)
c, err := s.Compile()
diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample
index 93881ad..7dd12e4 100644
--- a/matterbridge.toml.sample
+++ b/matterbridge.toml.sample
@@ -14788 +14788 @@ InMessage="example.tengo"
#
#The script will have the following global variables:
#read-only:
-#inAccount, inProtocol, inChannel, inGateway
-#outAccount, outProtocol, outChannel, outGateway
+#inAccount, inProtocol, inChannel, inGateway, inEvent
+#outAccount, outProtocol, outChannel, outGateway, outEvent
#
#read-write:
#msgText, msgUsername