Skip to content

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

Open
progval wants to merge 2 commits into
masterfrom
nickauth-nick-add
Open

NickAuth: Make username argument to 'nick add' required#1629
progval wants to merge 2 commits into
masterfrom
nickauth-nick-add

Conversation

@progval

@progval progval commented May 27, 2025

Copy link
Copy Markdown
Owner

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

jlu5 commented May 29, 2025

Copy link
Copy Markdown
Collaborator

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

progval commented May 29, 2025

Copy link
Copy Markdown
Owner Author

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