Skip to content

NickAuth: Make username argument to 'nick add' required #1629

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

progval
Copy link
Owner

@progval progval commented May 27, 2025

optional() is greedy, so if someone uses 'nickauth nick add MyNick' and MyNick is also a bot account name, the command fails. This is very confusing.

progval added 2 commits May 27, 2025 21:09
optional() is greedy, so if someone uses 'nickauth nick add MyNick' and MyNick
is also a bot account name, the command fails. This is very confusing.
@jlu5
Copy link
Collaborator

jlu5 commented May 29, 2025

Is there no nice way to preserve the current behaviour? I think the worst case implementation would be to manually count whether we've been passed one or two arguments. Even if it's not so idiomatic, it might be better than making the commands less flexible

@progval
Copy link
Owner Author

progval commented May 29, 2025

good idea

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