From e4556869fe11c5eadf94c4ff6c41f352ae0d5005 Mon Sep 17 00:00:00 2001 From: Hendrik Schlehlein Date: Thu, 31 Jan 2019 19:59:26 +0100 Subject: [PATCH 1/2] added config.json --- .gitignore | 1 - config.json | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 config.json 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 From 126eb99d0f7eb2eda5f3474ba808ae37c42798bf Mon Sep 17 00:00:00 2001 From: Hendrik Schlehlein Date: Thu, 31 Jan 2019 20:35:31 +0100 Subject: [PATCH 2/2] hotfix --- service/channel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:]...) }