Show DCC send filesize

This commit is contained in:
Ken-Håvard Lieng 2020-06-24 08:09:05 +02:00
parent 45f8795fad
commit 02e9df865e
5 changed files with 65 additions and 59 deletions

View file

@ -496,6 +496,7 @@ func (i *ircHandler) receiveDCCSend(pack *irc.DCCSend, msg *irc.Message) {
Network: i.client.Host(),
From: msg.Sender,
Filename: pack.File,
Size: pack.Size(),
URL: fmt.Sprintf("%s://%s/downloads/%s/%s",
i.state.String("scheme"), i.state.String("host"), i.state.user.Username, pack.File),
})

View file

@ -218,6 +218,7 @@ type DCCSend struct {
Network string
From string
Filename string
Size string
URL string
}