Fix https://github.com/matthieugrieger/mumbledj/issues/16: Type mismatch on make
This commit is contained in:
parent
7fe12c4e43
commit
aa60f2bad7
|
@ -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)
|
||||
}
|
||||
|
|
Reference in a new issue