rfc2812.txt

来自「中、英文RFC文档大全打包下载完全版 .」· 文本 代码 · 共 1,794 行 · 第 1/5 页

TXT
1,794
字号
               <reserved> <info>   The SERVICE command to register a new service.  Command parameters   specify the service nickname, distribution, type and info of a new   service.Kalt                         Informational                     [Page 13]RFC 2812          Internet Relay Chat: Client Protocol        April 2000   The <distribution> parameter is used to specify the visibility of a   service.  The service may only be known to servers which have a name   matching the distribution.  For a matching server to have knowledge   of the service, the network path between that server and the server   on which the service is connected MUST be composed of servers which   names all match the mask.   The <type> parameter is currently reserved for future usage.   Numeric Replies:           ERR_ALREADYREGISTRED            ERR_NEEDMOREPARAMS           ERR_ERRONEUSNICKNAME           RPL_YOURESERVICE                RPL_YOURHOST           RPL_MYINFO   Example:   SERVICE dict * *.fr 0 0 :French Dictionary ; Service registering                                   itself with a name of "dict".  This                                   service will only be available on                                   servers which name matches "*.fr".3.1.7 Quit      Command: QUIT   Parameters: [ <Quit Message> ]   A client session is terminated with a quit message.  The server   acknowledges this by sending an ERROR message to the client.   Numeric Replies:           None.   Example:   QUIT :Gone to have lunch        ; Preferred message format.   :syrk!kalt@millennium.stealth.net QUIT :Gone to have lunch ; User                                   syrk has quit IRC to have lunch.Kalt                         Informational                     [Page 14]RFC 2812          Internet Relay Chat: Client Protocol        April 20003.1.8 Squit      Command: SQUIT   Parameters: <server> <comment>   The SQUIT command is available only to operators.  It is used to   disconnect server links.  Also servers can generate SQUIT messages on   error conditions.  A SQUIT message may also target a remote server   connection.  In this case, the SQUIT message will simply be sent to   the remote server without affecting the servers in between the   operator and the remote server.   The <comment> SHOULD be supplied by all operators who execute a SQUIT   for a remote server.  The server ordered to disconnect its peer   generates a WALLOPS message with <comment> included, so that other   users may be aware of the reason of this action.   Numeric replies:           ERR_NOPRIVILEGES                ERR_NOSUCHSERVER           ERR_NEEDMOREPARAMS   Examples:   SQUIT tolsun.oulu.fi :Bad Link ?  ; Command to uplink of the server                                   tolson.oulu.fi to terminate its                                   connection with comment "Bad Link".   :Trillian SQUIT cm22.eng.umd.edu :Server out of control ; Command                                   from Trillian from to disconnect                                   "cm22.eng.umd.edu" from the net with                                   comment "Server out of control".3.2 Channel operations   This group of messages is concerned with manipulating channels, their   properties (channel modes), and their contents (typically users).   For this reason, these messages SHALL NOT be made available to   services.   All of these messages are requests which will or will not be granted   by the server.  The server MUST send a reply informing the user   whether the request was granted, denied or generated an error.  When   the server grants the request, the message is typically sent back   (eventually reformatted) to the user with the prefix set to the user   itself.Kalt                         Informational                     [Page 15]RFC 2812          Internet Relay Chat: Client Protocol        April 2000   The rules governing how channels are managed are enforced by the   servers.  These rules are beyond the scope of this document.  More   details are found in "Internet Relay Chat: Channel Management" [IRC-   CHAN].3.2.1 Join message      Command: JOIN   Parameters: ( <channel> *( "," <channel> ) [ <key> *( "," <key> ) ] )               / "0"   The JOIN command is used by a user to request to start listening to   the specific channel.  Servers MUST be able to parse arguments in the   form of a list of target, but SHOULD NOT use lists when sending JOIN   messages to clients.   Once a user has joined a channel, he receives information about   all commands his server receives affecting the channel.  This   includes JOIN, MODE, KICK, PART, QUIT and of course PRIVMSG/NOTICE.   This allows channel members to keep track of the other channel   members, as well as channel modes.   If a JOIN is successful, the user receives a JOIN message as   confirmation and is then sent the channel's topic (using RPL_TOPIC) and   the list of users who are on the channel (using RPL_NAMREPLY), which   MUST include the user joining.   Note that this message accepts a special argument ("0"), which is   a special request to leave all channels the user is currently a member   of.  The server will process this message as if the user had sent   a PART command (See Section 3.2.2) for each channel he is a member   of.   Numeric Replies:           ERR_NEEDMOREPARAMS              ERR_BANNEDFROMCHAN           ERR_INVITEONLYCHAN              ERR_BADCHANNELKEY           ERR_CHANNELISFULL               ERR_BADCHANMASK           ERR_NOSUCHCHANNEL               ERR_TOOMANYCHANNELS           ERR_TOOMANYTARGETS              ERR_UNAVAILRESOURCE           RPL_TOPIC   Examples:   JOIN #foobar                    ; Command to join channel #foobar.   JOIN &foo fubar                 ; Command to join channel &foo using                                   key "fubar".Kalt                         Informational                     [Page 16]RFC 2812          Internet Relay Chat: Client Protocol        April 2000   JOIN #foo,&bar fubar            ; Command to join channel #foo using                                   key "fubar" and &bar using no key.   JOIN #foo,#bar fubar,foobar     ; Command to join channel #foo using                                   key "fubar", and channel #bar using                                   key "foobar".   JOIN #foo,#bar                  ; Command to join channels #foo and                                   #bar.   JOIN 0                          ; Leave all currently joined                                   channels.   :WiZ!jto@tolsun.oulu.fi JOIN #Twilight_zone ; JOIN message from WiZ                                   on channel #Twilight_zone3.2.2 Part message      Command: PART   Parameters: <channel> *( "," <channel> ) [ <Part Message> ]   The PART command causes the user sending the message to be removed   from the list of active members for all given channels listed in the   parameter string.  If a "Part Message" is given, this will be sent   instead of the default message, the nickname.  This request is always   granted by the server.   Servers MUST be able to parse arguments in the form of a list of   target, but SHOULD NOT use lists when sending PART messages to   clients.   Numeric Replies:           ERR_NEEDMOREPARAMS              ERR_NOSUCHCHANNEL           ERR_NOTONCHANNEL   Examples:   PART #twilight_zone             ; Command to leave channel                                   "#twilight_zone"   PART #oz-ops,&group5            ; Command to leave both channels                                   "&group5" and "#oz-ops".   :WiZ!jto@tolsun.oulu.fi PART #playzone :I lost                                   ; User WiZ leaving channel                                   "#playzone" with the message "I                                   lost".Kalt                         Informational                     [Page 17]RFC 2812          Internet Relay Chat: Client Protocol        April 20003.2.3 Channel mode message      Command: MODE   Parameters: <channel> *( ( "-" / "+" ) *<modes> *<modeparams> )   The MODE command is provided so that users may query and change the   characteristics of a channel.  For more details on available modes   and their uses, see "Internet Relay Chat: Channel Management" [IRC-   CHAN].  Note that there is a maximum limit of three (3) changes per   command for modes that take a parameter.   Numeric Replies:           ERR_NEEDMOREPARAMS              ERR_KEYSET           ERR_NOCHANMODES                 ERR_CHANOPRIVSNEEDED           ERR_USERNOTINCHANNEL            ERR_UNKNOWNMODE           RPL_CHANNELMODEIS           RPL_BANLIST                     RPL_ENDOFBANLIST           RPL_EXCEPTLIST                  RPL_ENDOFEXCEPTLIST           RPL_INVITELIST                  RPL_ENDOFINVITELIST           RPL_UNIQOPIS   The following examples are given to help understanding the syntax of   the MODE command, but refer to modes defined in "Internet Relay Chat:   Channel Management" [IRC-CHAN].   Examples:   MODE #Finnish +imI *!*@*.fi     ; Command to make #Finnish channel                                   moderated and 'invite-only' with user                                   with a hostname matching *.fi                                   automatically invited.   MODE #Finnish +o Kilroy         ; Command to give 'chanop' privileges                                   to Kilroy on channel #Finnish.   MODE #Finnish +v Wiz            ; Command to allow WiZ to speak on                                   #Finnish.   MODE #Fins -s                   ; Command to remove 'secret' flag                                   from channel #Fins.   MODE #42 +k oulu                ; Command to set the channel key to                                   "oulu".   MODE #42 -k oulu                ; Command to remove the "oulu"                                   channel key on channel "#42".Kalt                         Informational                     [Page 18]RFC 2812          Internet Relay Chat: Client Protocol        April 2000   MODE #eu-opers +l 10            ; Command to set the limit for the                                   number of users on channel                                   "#eu-opers" to 10.   :WiZ!jto@tolsun.oulu.fi MODE #eu-opers -l                                   ; User "WiZ" removing the limit for                                   the number of users on channel "#eu-                                   opers".   MODE &oulu +b                   ; Command to list ban masks set for                                   the channel "&oulu".   MODE &oulu +b *!*@*             ; Command to prevent all users from                                   joining.   MODE &oulu +b *!*@*.edu +e *!*@*.bu.edu                                   ; Command to prevent any user from a                                   hostname matching *.edu from joining,                                   except if matching *.bu.edu   MODE #bu +be *!*@*.edu *!*@*.bu.edu                                   ; Comment to prevent any user from a                                   hostname matching *.edu from joining,                                   except if matching *.bu.edu   MODE #meditation e              ; Command to list exception masks set                                   for the channel "#meditation".   MODE #meditation I              ; Command to list invitations masks                                   set for the channel "#meditation".   MODE !12345ircd O               ; Command to ask who the channel                                   creator for "!12345ircd" is3.2.4 Topic message      Command: TOPIC   Parameters: <channel> [ <topic> ]   The TOPIC command is used to change or view the topic of a channel.   The topic for channel <channel> is returned if there is no <topic>   given.  If the <topic> parameter is present, the topic for that   channel will be changed, if this action is allowed for the user   requesting it.  If the <topic> parameter is an empty string, the   topic for that channel will be removed.Kalt                         Informational                     [Page 19]RFC 2812          Internet Relay Chat: Client Protocol        April 2000   Numeric Replies:           ERR_NEEDMOREPARAMS              ERR_NOTONCHANNEL           RPL_NOTOPIC                     RPL_TOPIC           ERR_CHANOPRIVSNEEDED            ERR_NOCHANMODES   Examples:

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?