forked from Cliffbreak/tsviewer
Merge branch 'master' of https://git.cliffbreak.de/Cliffbreak/tsviewer
This commit is contained in:
commit
96fd78fcd3
3 changed files with 15 additions and 2 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -13,4 +13,3 @@
|
|||
*.out
|
||||
|
||||
# Custom Blacklist
|
||||
config.json
|
14
config.json
Normal file
14
config.json
Normal file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"user": {
|
||||
"name": "serveradmin",
|
||||
"password": ""
|
||||
},
|
||||
"serverTS": {
|
||||
"ip": "127.0.0.1",
|
||||
"portServer": 9987,
|
||||
"portQuery": 10011
|
||||
},
|
||||
"serverWeb": {
|
||||
"port": 80
|
||||
}
|
||||
}
|
|
@ -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:]...)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue