Skip to content

Comments

Send a single error when opping a non-existing nick#241

Open
progval wants to merge 1 commit intoDALnet:masterfrom
progval:ERR_USERNOTINCHANNEL
Open

Send a single error when opping a non-existing nick#241
progval wants to merge 1 commit intoDALnet:masterfrom
progval:ERR_USERNOTINCHANNEL

Conversation

@progval
Copy link

@progval progval commented Jun 15, 2024

This used to return both ERR_NOSUCHNICK and ERR_USERNOTINCHANNEL:

C: MODE #chan +o nobody
S: :My.Little.Server 401 chanop nobody :No such nick/channel
S: :My.Little.Server 441 chanop nobody #chan :They aren't on that channel

I changed it to return only ERR_NOSUCHNICK, like other IRCds do.

This used to return both ERR_NOSUCHNICK and ERR_USERNOTINCHANNEL:

C: MODE #chan +o nobody
S: :My.Little.Server 401 chanop nobody :No such nick/channel
S: :My.Little.Server 441 chanop nobody #chan :They aren't on that channel

I changed it to return only ERR_NOSUCHNICK, like other IRCds do.
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.

1 participant