This article is written like a manual or guide.(June 2024) |
This is a list of all Internet Relay Chat commands from RFC 1459, RFC 2812, and extensions added to major IRC daemons. Most IRC clients require commands to be preceded by a slash ("/
"). Some commands are actually sent to IRC bots; these are treated by the IRC protocol as ordinary messages, not as /
-commands.
Conventions used here: Angle brackets ("<" and ">") are used here to indicate a placeholder for some value, and are not a literal part of a command. Square brackets ("[" and "]") are used to indicate that a value is optional.
Syntax:
ADMIN [<target>]
Instructs the server to return information about the administrators of the server specified by <target>, where <target> is either a server or a user. If <target> is omitted, the server should return information about the administrators of the current server. [1]
Syntax:
AWAY [<message>]
Provides the server with a message to automatically send in reply to a PRIVMSG directed at the user, but not to a channel they are on. [2] If <message> is omitted, the away status is removed. Defined in RFC 1459.
Syntax:
CNOTICE <nickname> <channel> :<message>
Sends a channel NOTICE message to <nickname> on <channel> that bypasses flood protection limits. The target nickname must be in the same channel as the client issuing the command, and the client must be a channel operator.
Normally an IRC server will limit the number of different targets a client can send messages to within a certain time frame to prevent spammers or bots from mass-messaging users on the network, however this command can be used by channel operators to bypass that limit in their channel. For example, it is often used by help operators that may be communicating with a large number of users in a help channel at one time.
This command is not formally defined in an RFC, but is in use by some IRC networks. Support is indicated in a RPL_ISUPPORT reply (numeric 005) with the CNOTICE keyword
Syntax:
CPRIVMSG <nickname> <channel> :<message>
Sends a private message to <nickname> on <channel> that bypasses flood protection limits. The target nickname must be in the same channel as the client issuing the command, and the client must be a channel operator.
Normally an IRC server will limit the number of different targets a client can send messages to within a certain time frame to prevent spammers or bots from mass-messaging users on the network, however this command can be used by channel operators to bypass that limit in their channel. For example, it is often used by help operators that may be communicating with a large number of users in a help channel at one time.
This command is not formally defined in an RFC, but is in use by some IRC networks. Support is indicated in a RPL_ISUPPORT reply (numeric 005) with the CPRIVMSG keyword
Syntax:
CONNECT <target server> [<port> [<remote server>]]
(RFC 1459)CONNECT <target server> <port> [<remote server>]
(RFC 2812)Instructs the server <remote server> (or the current server, if <remote server> is omitted) to connect to <target server> on port <port>. [3] [4] This command should only be available to IRC operators. Defined in RFC 1459; the <port> parameter became mandatory in RFC 2812.
Syntax:
DIE
Instructs the server to shut down. [5] This command may only be issued by IRC server operators. Defined in RFC 2812.
Syntax:
:<source> ENCAP <destination> <subcommand> <parameters>
This command is for use by servers to encapsulate commands so that they will propagate across hub servers not yet updated to support them, and indicates the subcommand and its parameters should be passed unaltered to the destination, where it will be unencapsulated and parsed. This facilitates implementation of new features without a need to restart all servers before they are usable across the network. [6]
Syntax:
ERROR <error message>
This command is for use by servers to report errors to other servers. It is also used before terminating client connections. [7] Defined in RFC 1459.
Syntax:
HELP
Requests the server to display the help file. This command is not formally defined in an RFC, but is in use by most[ which? ] major IRC daemons.
Syntax:
INFO [<target>]
Returns information about the <target> server, or the current server if <target> is omitted. [8] Information returned includes the server's version, when it was compiled, the patch level, when it was started, and any other information which may be considered to be relevant. Defined in RFC 1459.
Syntax:
INVITE <nickname> <channel>
Invites <nickname> to the channel <channel>. [9] <channel> does not have to exist, but if it does, only members of the channel are allowed to invite other clients. If the channel mode i
is set, only channel operators may invite other clients. Defined in RFC 1459.
Syntax:
ISON <nicknames>
Queries the server to see if the clients in the space-separated list <nicknames> are currently on the network. [10] The server returns only the nicknames that are on the network in a space-separated list. If none of the clients are on the network the server returns an empty list. Defined in RFC 1459.
Syntax:
JOIN <channels> [<keys>]
Makes the client join the channels in the comma-separated list <channels>, specifying the passwords, if needed, in the comma-separated list <keys>. [11] If the channel(s) do not exist then they will be created. Defined in RFC 1459.
Syntax:
KICK <channel> <client> :[<message>]
Forcibly removes <client> from <channel>. [12] This command may only be issued by channel operators. Defined in RFC 1459.
Syntax:
KILL <client> <comment>
Forcibly removes <client> from the network. [13] This command may only be issued by IRC operators. Defined in RFC 1459.
Syntax:
KNOCK <channel> [<message>]
Sends a NOTICE to an invitation-only <channel> with an optional <message>, requesting an invite. This command is not formally defined by an RFC, but is supported by most[ which? ] major IRC daemons. Support is indicated in a RPL_ISUPPORT reply (numeric 005) with the KNOCK keyword.
Syntax:
LINKS [<remote server> [<server mask>]]
Lists all server links matching <server mask>, if given, on <remote server>, or the current server if omitted. [14] Defined in RFC 1459.
Syntax:
LIST [<channels> [<server>]]
Lists all channels on the server. [15] If the comma-separated list <channels> is given, it will return the channel topics. If <server> is given, the command will be forwarded to <server> for evaluation. Defined in RFC 1459.
Syntax:
LUSERS [<mask> [<server>]]
Returns statistics about the size of the network. [16] If called with no arguments, the statistics will reflect the entire network. If <mask> is given, it will return only statistics reflecting the masked subset of the network. If <target> is given, the command will be forwarded to <server> for evaluation. Defined in RFC 2812.
Syntax:
MODE <nickname> <flags> (user)
MODE <channel> <flags> [<args>]
The MODE command is dual-purpose. It can be used to set both user and channel modes. [17] Defined in RFC 1459.
Syntax:
MOTD [<server>]
Returns the message of the day on <server> or the current server if it is omitted. [18] Defined in RFC 2812.
Syntax:
NAMES [<channels>]
(RFC 1459)NAMES [<channels> [<server>]]
(RFC 2812)Returns a list of who is on the comma-separated list of <channels>, by channel name. [19] If <channels> is omitted, all users are shown, grouped by channel name with all users who are not on a channel being shown as part of channel "*". If <server> is specified, the command is sent to <server> for evaluation. [20] Defined in RFC 1459; the optional <server> parameter was added in RFC 2812.
The response contains all nicknames in the channel prefixed with the highest channel status prefix of that user, for example like this (with @ being the highest status prefix)
:irc.server.net 353 Phyre = #SomeChannel :@WiZ
If a client wants to receive all the channel status prefixes of a user and not only their current highest one, the IRCv3 multi-prefix extension can be enabled (@ is the channel operator prefix, and + the lower voice status prefix): [21]
:irc.server.net 353 Phyre = #SomeChannel :@+WiZ
See also NAMESX below for an alternate, older approach to achieve the same effect. However, by today most clients and servers support the new IRCv3 standard. [22]
Syntax:
NICK <nickname> [<hopcount>]
(RFC 1459)NICK <nickname>
(RFC 2812)Allows a client to change their IRC nickname. Hopcount is for use between servers to specify how far away a nickname is from its home server. [23] [24] Defined in RFC 1459; the optional <hopcount> parameter was removed in RFC 2812.
Syntax:
NOTICE <msgtarget> <message>
This command works similarly to PRIVMSG, except automatic replies must never be sent in reply to NOTICE messages. [25] Defined in RFC 1459.
Syntax:
OPER <username> <password>
Authenticates a user as an IRC operator on that server/network. [26] Defined in RFC 1459.
Syntax:
PART <channels> [<message>]
Causes a user to leave the channels in the comma-separated list <channels>. [27] Defined in RFC 1459.
Syntax:
PASS <password>
Sets a connection password. [28] This command must be sent before the NICK/USER registration combination. Defined in RFC 1459.
Syntax:
PING <server1> [<server2>]
Tests the presence of a connection. [29] A PING message results in a PONG reply. If <server2> is specified, the message gets passed on to it. Defined in RFC 1459.
Syntax:
PONG <server1> [<server2>]
This command is a reply to the PING command and works in much the same way. [30] Defined in RFC 1459.
Syntax:
PRIVMSG <msgtarget> :<message>
Sends <message> to <msgtarget>, which is usually a user or channel. [31] Defined in RFC 1459.
Syntax:
QUIT [<message>]
Disconnects the user from the server. [32] Defined in RFC 1459.
Syntax:
QUOTE
Sends a command string to the server as-is, i.e. without parsing it in the client application. [33] [34]
Syntax:
REHASH
Causes the server to re-read and re-process its configuration file(s). [35] This command can only be sent by IRC operators. Defined in RFC 1459.
Syntax:
RULES
Requests the server rules. This command is not formally defined in an RFC, but is used by most[ which? ] major IRC daemons.
Syntax:
SERVER <servername> <hopcount> <info>
The server message is used to tell a server that the other end of a new connection is a server. [36] This message is also used to pass server data over the whole network. <hopcount> details how many hops (server connections) away <servername> is. <info> contains addition human-readable information about the server.
Defined in RFC 1459.
Syntax:
Syntax:
SQUERY <servicename> <text>
Identical to PRIVMSG except the recipient must be a service. [37] Defined in RFC 2812.
Syntax:
SQUIT <server> <comment>
Causes <server> to quit the network. [38] Defined in RFC 1459.
Syntax:
SETNAME <new real name>
Allows a client to change the "real name" specified when registering a connection.
This command is not formally defined by an RFC, but is in use by some IRC daemons. Support is indicated in a RPL_ISUPPORT reply (numeric 005) with the SETNAME keyword
Syntax:
SILENCE [+/-<hostmask>]
Adds or removes a host mask to a server-side ignore list that prevents matching users from sending the client messages. More than one mask may be specified in a space-separated list, each item prefixed with a "+" or "-" to designate whether it is being added or removed. Sending the command with no parameters returns the entries in the client's ignore list.
This command is not formally defined in an RFC, but is supported by most[ which? ] major IRC daemons. Support is indicated in a RPL_ISUPPORT reply (numeric 005) with the SILENCE keyword and the maximum number of entries a client may have in its ignore list. For example:
:irc.server.net 005 WiZ WALLCHOPS WATCH=128 SILENCE=15 MODES=12 CHANTYPES=#
Syntax:
STATS <query> [<server>]
Returns statistics about the current server, or <server> if it's specified. [39] Defined in RFC 1459.
Syntax:
SUMMON <user> [<server>]
(RFC 1459)SUMMON <user> [<server> [<channel>]]
(RFC 2812)Gives users who are on the same host as <server> a message asking them to join IRC. [40] [41] Defined in RFC 1459; the optional <channel> parameter was added in RFC 2812.
Syntax:
TIME [<server>]
Returns the local time on the current server, or <server> if specified. [42] Defined in RFC 1459.
Syntax:
TOPIC <channel> [<topic>]
Allows the client to query or set the channel topic on <channel>. [43] If <topic> is given, it sets the channel topic to <topic>. If channel mode +t is set, only a channel operator may set the topic. Defined in RFC 1459.
Syntax:
TRACE [<target>]
Trace a path across the IRC network to a specific server or client, in a similar method to traceroute. [44] Defined in RFC 1459.
Syntax:
USER <username> <hostname> <servername> <realname>
(RFC 1459)USER <user> <mode> <unused> <realname>
(RFC 2812)This command is used at the beginning of a connection to specify the username, hostname, real name and initial user modes of the connecting client. [45] [46] <realname> may contain spaces, and thus must be prefixed with a colon. Defined in RFC 1459, modified in RFC 2812.
Syntax:
USERHOST <nickname> [<nickname> <nickname> ...]
Returns a list of information about the nicknames specified. [47] Defined in RFC 1459.
Syntax:
USERIP <nickname>
Requests the direct IP address of the user with the specified nickname. This command is often used to obtain the IP of an abusive user to more effectively perform a ban. It is unclear what, if any, privileges are required to execute this command on a server.
This command is not formally defined by an RFC, but is in use by some IRC daemons. Support is indicated in a RPL_ISUPPORT reply (numeric 005) with the USERIP keyword.
Syntax:
USERS [<server>]
Returns a list of users and information about those users in a format similar to the UNIX commands who, rusers and finger. [48] Defined in RFC 1459.
Syntax:
VERSION [<server>]
Returns the version of <server>, or the current server if omitted. [49] Defined in RFC 1459.
Syntax:
WALLOPS <message>
Sends <message> to all operators connected to the server (RFC 1459), or all users with user mode 'w' set (RFC 2812). [50] [51] Defined in RFC 1459.
Syntax:
WATCH [+/-<nicknames>]
Adds or removes a user to a client's server-side friends list. More than one nickname may be specified in a space-separated list, each item prefixed with a "+" or "-" to designate whether it is being added or removed. Sending the command with no parameters returns the entries in the client's friends list.
This command is not formally defined in an RFC, but is supported by most[ which? ] major IRC daemons. Support is indicated in a RPL_ISUPPORT reply (numeric 005) with the WATCH keyword and the maximum number of entries a client may have in its friends list. For example:
:irc.server.net 005 WiZ WALLCHOPS WATCH=128 SILENCE=15 MODES=12 CHANTYPES=#
Syntax:
WHO [<name> ["o"]]
Returns a list of users who match <name>. [52] If the flag "o" is given, the server will only return information about IRC operators. Defined in RFC 1459.
Syntax:
WHOIS [<server>] <nicknames>
Returns information about the comma-separated list of nicknames masks <nicknames>. [53] If <server> is given, the command is forwarded to it for processing. Defined in RFC 1459.
Syntax:
WHOWAS <nickname> [<count> [<server>]]
Used to return information about a nickname that is no longer in use (due to client disconnection, or nickname changes). [54] If given, the server will return information from the last <count> times the nickname has been used. If <server> is given, the command is forwarded to it for processing. In RFC 2812, <nickname> can be a comma-separated list of nicknames. [55]
Defined in RFC 1459.
The Dynamic Host Configuration Protocol (DHCP) is a network management protocol used on Internet Protocol (IP) networks for automatically assigning IP addresses and other communication parameters to devices connected to the network using a client–server architecture.
Electronic mail is a method of transmitting and receiving messages using electronic devices. It was conceived in the late–20th century as the digital version of, or counterpart to, mail. Email is a ubiquitous and very widely used communication medium; in current use, an email address is often treated as a basic and necessary part of many processes in business, commerce, government, education, entertainment, and other spheres of daily life in most countries.
HTTP is an application layer protocol in the Internet protocol suite model for distributed, collaborative, hypermedia information systems. HTTP is the foundation of data communication for the World Wide Web, where hypertext documents include hyperlinks to other resources that the user can easily access, for example by a mouse click or by tapping the screen in a web browser.
IRC is a text-based chat system for instant messaging. IRC is designed for group communication in discussion forums, called channels, but also allows one-on-one communication via private messages as well as chat and data transfer, including file sharing.
The Session Initiation Protocol (SIP) is a signaling protocol used for initiating, maintaining, and terminating communication sessions that include voice, video and messaging applications. SIP is used in Internet telephony, in private IP telephone systems, as well as mobile phone calling over LTE (VoLTE).
An email client, email reader or, more formally, message user agent (MUA) or mail user agent is a computer program used to access and manage a user's email.
The Network Time Protocol (NTP) is a networking protocol for clock synchronization between computer systems over packet-switched, variable-latency data networks. In operation since before 1985, NTP is one of the oldest Internet protocols in current use. NTP was designed by David L. Mills of the University of Delaware.
An email address identifies an email box to which messages are delivered. While early messaging systems used a variety of formats for addressing, today, email addresses follow a set of specific rules originally standardized by the Internet Engineering Task Force (IETF) in the 1980s, and updated by RFC 5322 and 6854. The term email address in this article refers to just the addr-spec in Section 3.4 of RFC 5322. The RFC defines address more broadly as either a mailbox or group. A mailbox value can be either a name-addr, which contains a display-name and addr-spec, or the more common addr-spec alone.
An IRCd, short for Internet Relay Chat daemon, is server software that implements the IRC protocol, enabling people to talk to each other via the Internet. It is distinct from an IRC bot that connects outbound to an IRC channel.
Internet Relay Chat Flooding/Scrolling on an IRC network is a method of disconnecting users from an IRC server, exhausting bandwidth which causes network latency ('lag'), or just disrupting users. Floods can either be done by scripts or by external programs.
Extensible Authentication Protocol (EAP) is an authentication framework frequently used in network and internet connections. It is defined in RFC 3748, which made RFC 2284 obsolete, and is updated by RFC 5247. EAP is an authentication framework for providing the transport and usage of material and parameters generated by EAP methods. There are many methods defined by RFCs, and a number of vendor-specific methods and new proposals exist. EAP is not a wire protocol; instead it only defines the information from the interface and the formats. Each protocol that uses EAP defines a way to encapsulate by the user EAP messages within that protocol's messages.
MSN Chat was the Microsoft Network version of IRCX, which replaced Microsoft Chat, a set of Exchange-based IRCX servers first available in the Microsoft Comic Chat client, although Comic Chat was not required to connect.
Email forwarding generically refers to the operation of re-sending a previously delivered email to an email address to one or more different email addresses.
WebSocket is a computer communications protocol, providing a simultaneous two-way communication channel over a single Transmission Control Protocol (TCP) connection. The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011. The current specification allowing web applications to use this protocol is known as WebSockets. It is a living standard maintained by the WHATWG and a successor to The WebSocket API from the W3C.
The Ident Protocol, specified in RFC 1413, is an Internet protocol that helps identify the user of a particular TCP connection. One popular daemon program for providing the ident service is identd.
A mailbox provider, mail service provider or, somewhat improperly, email service provider is a provider of email hosting. It implements email servers to send, receive, accept, and store email for other organizations or end users, on their behalf.
{{cite web}}
: CS1 maint: archived copy as title (link)/quote
is cited in the mIRC documentation () as an equivalent of mIRC's /raw
command, but which is supported in the other IRC clients.