Fixed error message for videos exceeding time limit not showing

This commit is contained in:
Matthieu Grieger 2015-05-14 10:44:28 -07:00
parent fce0f0e378
commit 12b7cb3a77

View file

@ -201,7 +201,7 @@ func add(user *gumble.User, username, url string) {
dj.queue.OnSongFinished()
}
}
} else if fmt.Sprint(err) == "video exceeds the maximum allowed duration." {
} else if fmt.Sprint(err) == "Song exceeds the maximum allowed duration." {
dj.SendPrivateMessage(user, VIDEO_TOO_LONG_MSG)
} else if fmt.Sprint(err) == "Invalid API key supplied." {
dj.SendPrivateMessage(user, INVALID_API_KEY)