This commit is contained in:
Moritz 2019-01-31 20:57:09 +01:00
commit 96fd78fcd3
3 changed files with 15 additions and 2 deletions

1
.gitignore vendored
View file

@ -13,4 +13,3 @@
*.out
# Custom Blacklist
config.json

14
config.json Normal file
View file

@ -0,0 +1,14 @@
{
"user": {
"name": "serveradmin",
"password": ""
},
"serverTS": {
"ip": "127.0.0.1",
"portServer": 9987,
"portQuery": 10011
},
"serverWeb": {
"port": 80
}
}

View file

@ -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:]...)
}