Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 645a19dadf17682f056c834524cdd74f1fe70bcc Author: Wim <wim@42.be> Date: Tue Jun 19 22:53:45 2018 +0000 Fix possible panic. #448 diff --git a/bridge/helper/helper.go b/bridge/helper/helper.go index 13d94ed..d0c1062 100644 --- a/bridge/helper/helper.go +++ b/bridge/helper/helper.go @@ -597 +597 @@ 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   }