diff options
author | Wim <wim@42.be> | 2018-06-19 22:53:45 +0200 |
---|---|---|
committer | Wim <wim@42.be> | 2018-06-19 22:53:45 +0200 |
commit | e4b72136b80b981d842fa5a06c78ae99031c7878 (patch) | |
tree | e1996e24fa008da5ecf9d69b6d994438919a2964 | |
parent | 4ff5091bc2cf505ac248adc5ed68a76e52edb16c (diff) | |
download | matterbridge-msglm-e4b72136b80b981d842fa5a06c78ae99031c7878.tar.gz matterbridge-msglm-e4b72136b80b981d842fa5a06c78ae99031c7878.tar.bz2 matterbridge-msglm-e4b72136b80b981d842fa5a06c78ae99031c7878.zip |
Fix possible panic. #448
-rw-r--r-- | bridge/helper/helper.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bridge/helper/helper.go b/bridge/helper/helper.go index 13d94ede..d0c1062c 100644 --- a/bridge/helper/helper.go +++ b/bridge/helper/helper.go @@ -59,7 +59,7 @@ func HandleExtra(msg *config.Message, general *config.Protocol) []config.Message for _, f := range extra[config.EVENT_FILE_FAILURE_SIZE] { fi := f.(config.FileInfo) text := fmt.Sprintf("file %s too big to download (%#v > allowed size: %#v)", fi.Name, fi.Size, general.MediaDownloadSize) - rmsg = append(rmsg, config.Message{Text: text, Username: "<system> ", Channel: msg.Channel}) + rmsg = append(rmsg, config.Message{Text: text, Username: "<system> ", Channel: msg.Channel, Account: msg.Account}) } return rmsg } |