Add per-user download directory

This commit is contained in:
Ken-Håvard Lieng 2020-05-17 02:14:35 +02:00
parent 1532b2a8c8
commit 6b5bf4ced1
4 changed files with 6 additions and 4 deletions

View file

@ -70,7 +70,7 @@ func connectIRC(server *storage.Server, state *State, srcIP []byte) *irc.Client
}
}
i.DownloadFolder = cfg.DownloadFolder
i.DownloadFolder = storage.Path.Downloads(state.user.Username)
i.Autoget = cfg.Autoget
state.setIRC(server.Host, i)