Skip to content
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

Document ERR_INVALIDUSERNAME and ERR_ONLYSERVERSCANCHANGE #217

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions _data/modern.yml
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,12 @@ numerics:
ERR_KEYSET:
numeric: '467'

ERR_ONLYSERVERSCANCHANGE:
numeric: '468'

ERR_INVALIDUSERNAME:
numeric: '468'

ERR_LINKSET:
numeric: '469'

Expand Down
1 change: 1 addition & 0 deletions _includes/messages/connection.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Numeric Replies:

* {% numeric ERR_NEEDMOREPARAMS %}
* {% numeric ERR_ALREADYREGISTERED %}
* {% numeric ERR_INVALIDUSERNAME %}

Command Examples:

Expand Down
11 changes: 11 additions & 0 deletions _includes/messages/server_queries.md
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,17 @@ Command Examples:

The `MODE` command is used to set or remove options (or *modes*) from a given target.

Numeric Replies:

* {% numeric RPL_UMODEIS %}
* {% numeric RPL_CHANNELMODEIS %}
* {% numeric ERR_NOSUCHNICK %}
* {% numeric ERR_NOSUCHCHANNEL %}
* {% numeric ERR_USERSDONTMATCH %}
* {% numeric ERR_CHANOPRIVSNEEDED %}
* {% numeric ERR_UMODEUNKNOWNFLAG %}
* {% numeric ERR_ONLYSERVERSCANCHANGE %}

#### User mode

If `<target>` is a nickname that does not exist on the network, the {% numeric ERR_NOSUCHNICK %} numeric is returned. If `<target>` is a different nick than the user who sent the command, the {% numeric ERR_USERSDONTMATCH %} numeric is returned.
Expand Down
15 changes: 15 additions & 0 deletions _includes/modern-appendix.md
Original file line number Diff line number Diff line change
Expand Up @@ -902,6 +902,21 @@ Returned to indicate that the connection could not be registered as the [passwor

Returned to indicate that the server has been configured to explicitly deny connections from this client. The text used in the last param of this message varies wildly and typically also contains the reason for the ban and/or ban details, and SHOULD be displayed as-is by IRC clients to their users.

{% numericheader ERR_ONLYSERVERSCANCHANGE %}

"<client> <target> :Only servers can change that mode

Server should avoid this numeric, as it conflicts with {% numeric ERR_INVALIDUSERNAME %}

{% numericheader ERR_INVALIDUSERNAME %}

"<client> :Your username is not valid

Returned to indicate the username provided as the first parameter to {% message USER %}
is invalid.

Note: for historical reasons, the same numeric is used for {% numeric ERR_ONLYSERVERSCANCHANGE %}

{% numericheader ERR_CHANNELISFULL %}

"<client> <channel> :Cannot join channel (+l)"
Expand Down