From e4b72136b80b981d842fa5a06c78ae99031c7878 Mon Sep 17 00:00:00 2001 From: Wim Date: Tue, 19 Jun 2018 22:53:45 +0200 Subject: Fix possible panic. #448 --- bridge/helper/helper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: " ", Channel: msg.Channel}) + rmsg = append(rmsg, config.Message{Text: text, Username: " ", Channel: msg.Channel, Account: msg.Account}) } return rmsg } -- cgit v1.2.3