This commit is contained in:
Matthieu Grieger 2015-01-10 12:32:27 -08:00
parent 7fe12c4e43
commit aa60f2bad7

View file

@ -153,7 +153,6 @@ func add(user *gumble.User, username, url string) {
if re.MatchString(url) {
if dj.HasPermission(username, dj.conf.Permissions.AdminAddPlaylists) {
shortUrl = re.FindStringSubmatch(url)[1]
if shortUrl != nil {
newPlaylist := NewPlaylist(username, shortUrl)
if dj.queue.AddItem(newPlaylist); err == nil {
dj.client.Self().Channel().Send(fmt.Sprintf(PLAYLIST_ADDED_HTML, username, newPlaylist.title), false)
@ -166,7 +165,6 @@ func add(user *gumble.User, username, url string) {
}
}
}
}
} else {
user.Send(NO_PLAYLIST_PERMISSION_MSG)
}