Skip to content

feat: Added config option to disable server autoconnect.#462

Merged
osa1 merged 5 commits intoosa1:masterfrom
daneofmanythings:443
Mar 8, 2026
Merged

feat: Added config option to disable server autoconnect.#462
osa1 merged 5 commits intoosa1:masterfrom
daneofmanythings:443

Conversation

@daneofmanythings
Copy link
Contributor

This is an implementation of the feature request from issue #443. Let me know how it looks, thanks!

Copy link
Owner

@osa1 osa1 left a comment

Choose a reason for hiding this comment

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

Hi @daneofmanythings. Thanks for the PR. This doesn't build currently, could you have a look?

We should also update crates/tiny/config.yml showing the usage of this field. It should be a commented-out configuration just like the other options in the file.

Regarding the option name (autoconn), what do other IRC clients use for this option? If possible we should use the same. Some alternatives: autoconnect, auto_conn, auto_connect.

@daneofmanythings
Copy link
Contributor Author

Thanks for the quick response! I'm not sure why the pr got closed. I did not do that on purpose. I believe I have fixed the compiler errors, but I will verify. As for the name, I will change it to autoconnect, and will add a short description in config.yaml.

@daneofmanythings
Copy link
Contributor Author

daneofmanythings commented Mar 8, 2026

I am sorry, I didn't expect the CI it to rerun right away from the PR. I'll fix it.

@osa1
Copy link
Owner

osa1 commented Mar 8, 2026

I wasn't suggesting we should rename the option. I was asking what other clients use. I had a look:

Based on this I now suggest we should call it "autoconnect".

@daneofmanythings daneofmanythings marked this pull request as draft March 8, 2026 02:26
@daneofmanythings
Copy link
Contributor Author

Thanks for the notes, I have adjusted the wording! I apologize for the failed build attempts, It builds and passes tests on my machine now. I am quite new to rust, and am making dumb mistakes.

Copy link
Owner

@osa1 osa1 left a comment

Choose a reason for hiding this comment

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

Thanks @daneofmanythings. Just one more thing added..

If you're looking to contribute more would you like to pick up #461 after this one?

nicks: [tiny_user]

# Whether to auto-connect to this server on startup.
# autoconnect: true
Copy link
Owner

Choose a reason for hiding this comment

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

I've noticed that in other boolean options we specify the default, and then the commented-out option inverts the default value. E.g.

      # Sets /ignore for this server and all its tabs. Default is false.
      # ignore: true

For consistency we should do the same. So mention the default ("Default is true."), then make the option false in the commented-out code.

@daneofmanythings
Copy link
Contributor Author

Good catch on that! I have made the adjustment.

I'd be happy to take a look at that feature request. Like i said before, I am very new to rust and I expect that to be reflected in the code I write, but I will give it a shot! Should I open a new PR for it when I have my first pass?

@daneofmanythings daneofmanythings marked this pull request as ready for review March 8, 2026 03:07
@osa1 osa1 merged commit d62b958 into osa1:master Mar 8, 2026
7 checks passed
@osa1
Copy link
Owner

osa1 commented Mar 8, 2026

Should I open a new PR for it when I have my first pass?

Sure. I'm happy to advise/help as long as you're not vibe-coding.

@daneofmanythings
Copy link
Contributor Author

AI does not touch my code. I prefer to write bugs by hand :)

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