Skip to content

fix: Fix incorrect privilegekeyadd command #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from

Conversation

HoneyBBQ
Copy link

@HoneyBBQ HoneyBBQ commented Jun 26, 2024

Copy link
Contributor

@stevenh stevenh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a bunch of unrelated changes have got bundled in here

@@ -9,7 +9,7 @@ Features
Installation
------------
```sh
go get -u github.com/multiplay/go-ts3
go get -u github.com/honeybbq/go-ts3
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: You’ve changed the name of the module which isn’t needed

@@ -44,10 +44,6 @@ func main() {
}
```

Documentation
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: this should be updated to point to thr new docs site instead of removed

@@ -461,3 +461,16 @@ func (s *ServerMethods) ClientDBList() ([]*DBClient, error) {
}
return dbclients, nil
}

type Snapshot struct {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Question: this looks unrelated to the described change

@@ -402,6 +402,18 @@ func testCmdsServer(t *testing.T, c *Client) {
assert.Equal(t, expected, clients)
}

serversnapshotcreate := func(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As above unrelated changes

@@ -368,7 +368,7 @@ func (s *ServerMethods) PrivilegeKeyAdd(ttype, id1, id2 int, options ...CmdArg)
Token string
}{}
options = append(options, NewArg("tokentype", ttype), NewArg("tokenid1", id1), NewArg("tokenid2", id2))
_, err := s.ExecCmd(NewCmd("privilegekeylist").WithArgs(options...).WithResponse(&t))
_, err := s.ExecCmd(NewCmd("privilegekeyadd").WithArgs(options...).WithResponse(&t))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the only needed change

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I forgot to close the pull request. Since your repository hasn’t been updated for a long time, I forked it and made the changes myself.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like the only needed change

I forgot that the pull request here is based on the main branch after I forked it. Sorry about that.

@HoneyBBQ HoneyBBQ closed this Sep 25, 2024
@HoneyBBQ
Copy link
Author

I have opened a new pull request, please review it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants