Fixed user.Send() in main.go

This commit is contained in:
Matthieu Grieger 2014-12-31 15:15:29 -08:00
parent ae5bd564d0
commit 5f39ce7b5b

View file

@ -96,6 +96,8 @@ func (dj *mumbledj) OnSongFinished() {
if err := dj.currentSong.Download(); err == nil {
dj.currentSong.Play()
} else {
username := dj.currentSong.submitter
user := dj.client.Self().Channel().Users().Find(username)
user.Send(AUDIO_FAIL_MSG)
dj.currentSong.Delete()
}