diff --git a/service/channel.go b/service/channel.go index 1631148..41f9201 100644 --- a/service/channel.go +++ b/service/channel.go @@ -72,7 +72,7 @@ func removeItem(slice *[]*ts3.Channel, id int) { if length < id+1 { ss = nil } else if length == id+1 { - ss = ss[id-1:] + ss = ss[:id] } else if length > id+1 { ss = append(ss[:id], ss[id+1:]...) }