diff --git a/.gitignore b/.gitignore index 7a42440..c26cae3 100644 --- a/.gitignore +++ b/.gitignore @@ -13,4 +13,3 @@ *.out # Custom Blacklist -config.json \ No newline at end of file diff --git a/config.json b/config.json new file mode 100644 index 0000000..9bc4b96 --- /dev/null +++ b/config.json @@ -0,0 +1,14 @@ +{ + "user": { + "name": "serveradmin", + "password": "" + }, + "serverTS": { + "ip": "127.0.0.1", + "portServer": 9987, + "portQuery": 10011 + }, + "serverWeb": { + "port": 80 + } +} \ No newline at end of file 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:]...) }