User:M2Ys4U/IRC

This is a list of Internet Relay Chat commands. These are used in Internet Relay Chat (IRC) to perform various actions. Commands are indicated by the use of a "/" right before them. In most cases, this can be changed, e.g. to "$", so that "/me" would change to "$me". However, "/" is almost always the default. Arguments with <> around them are in most cases required for the command to work properly, and those with [] around them usually do not need to be in there. Hostmasks come in the form nick!ident@host. They accept the wildcard characters * and ?, which match any string of characters and any single character, respectively. For example, *!johndoe@example.com would match any nick with that ident and host. Note that "nick" can be used also, and it will be matched to a hostmask automatically by the IRC server.

User commands
These are commands that can be performed by any user.

msg
Syntax: /msg This sends in a private message to.

Defined in: (unknown)

admin
Syntax: /admin [server] This gives administrative details about the server the user is currently connected to or the specified server that is given.

Defined in: RFC 1459 "4.3.7 Admin message"

ctcp
Syntax: /ctcp [other] This sends a CTCP to.

Defined in: (unknown)

disconnect
Syntax: /disconnect or /quit This disconnects the user from the current server.

Defined in: RFC 1459 "4.1.6 Quit message"

help
Syntax: /help (or /raw help) This returns a list of available IRC commands.

Defined in: (unknown)

ignore
Syntax: /ignore  This makes the client not display text from the specified user. However, this command varies from client to client. /unignore  This removes the ignore.

Defined in: (unknown)

join
Syntax: /join <#channel,[#channel,#channel,...]> [key,[key,key,...]] This joins the specified channels.

Defined in: RFC 1459 "4.2.1 Join message"

list
Syntax: /list <#channel> <-min#> <-max#> This lists title and number of users on a channel.

Defined in: RFC 1459 "4.2.6 List message"

links
Syntax: /links This retrieves list of all linked servers, and in what manner or order they relate to the currently connected server. On larger IRC networks, /links has been disabled to deter DDOS attacks.

Defined in: RFC 1459 "4.3.3 Links message"

lusers
Syntax: /lusers This lists local users in their various forms, online operators or admins, number of channels, and in how many servers.

Defined in: (unknown)

An example of how it displays in mIRC: There are 1014 users and 3 invisible on 1 servers 6 operator(s) online 32 channels formed I have 1017 clients and 0 servers

me
Syntax: /me This displays the nickname, followed by.

For example, when the user "MrWiki" writes "/me is going to go watch TV", it would be seen as "* MrWiki is going to go watch TV" by the channel. The way the output and input of an action may vary from client to client.

It is implemented with the CTCP ACTION command.

motd
Syntax: /motd [server] This returns the Message of the Day for the server the user is currently connected to or the specified server if given.

Defined in: (unknown)

names
Syntax: /names <#channel,[#channel,#channel,...]> This returns a list of nicknames on that channel, prefixed by @ and + for operator and voice modes respectively.

Defined in: RFC 1459 "4.2.5 Names message"

nick
Syntax: /nick This sets the user's nickname to.

Defined in: RFC 1459 "4.1.2 Nickname message"

notice
Syntax: /notice <#channel|nickname> This sends a notice to the specified channel or user. Generally, this isn't used except by service bots and IRCops.

Defined in: RFC 1459 "4.4.2 Notice messages"

part
Syntax: /part <#channel,[#channel,#channel,...]> [reason] This will cause you to leave the specified channels, or if the channel parameter isn't present it will cause you to leave the active channel. If no reason is given, a default (usually user-defined) is used.

Defined in: RFC 1459 "4.2.2 Part message"

query
Syntax: /query This starts a private chat with the selected user.

Defined in: (unknown)

quit
Syntax: /quit [reason] This will make the server disconnect the user from it. At times if a server is laggy the user won't disconnect immediately, so instead some clients have the /disconnect command which forces the client to disconnect from the server. If no reason is given, a default (usually user-defined) is used.

In Mozilla's Chatzilla IRC client, this command will cause you to exit Chatzilla completely.

Defined in: RFC 1459 "4.1.6 Quit message"

quote
Syntax: /quote (or /raw ) This sends the given command directly to the server so it will be not processed by the client program (for example client command "/connect" has different function than server command "/quote connect").

Defined in: (unknown)

say
Syntax: /say  This says what the user wants to say on the channel, but is good for showing examples of executing commands. For example, "/say Hi" will do the same thing as just typing "Hi", and "/say /msg wikipedia Hi" will display "/msg wikipedia Hi" as opposed to messaging "wikipedia"

Defined in: (unknown)

silence
Syntax: /silence [-|+] This is a form of serverside ignore. Prevents messages from the specified nick!user@host from being seen by the user.

Defined in: (unknown)

stats
Syntax: /stats This acquires server stat information based on the associated letter input given. (For example: "/stats o" will list operators from the server's configuration.)

Defined in: RFC 1459 "4.3.2 Stats message"

Common server stats include:

Note: Most /stats usually require IRC operator status.

who
Syntax: /who  This lists users in current channel who 'match' the name parameter. If no is given, all non-invisible (+i) users are returned. Addition of the 'o' parameter returns only Operators.

A common extension to this command is to allow for the request of the list of users on a channel. This is used by the X-Chat IRC Client to determine more information than the NAMES reply upon joining a channel, such as the user's host, away status, channel status, operator status, real name, and server.

From the ircd-hybrid help: WHO <#channel|user>

The WHO command displays information about a user, such as their GECOS information, their user@host, whether they are an IRC operator or not, etc. In the reply, the first field indicates the last channel the user has joined. The second is the user's nickname. The third field describes the status information about the user. The possible combinations for this field are listed below: H - The user is not away. A - The user is set away. * - The user is an IRC operator. @ - The user is a channel op in the channel listed in the first field. + - The user is voiced in the channel listed. % - The user is a half-op in the channel listed. (note: this is a hybrid-specific extension to the IRC protocol and not RFC-compliant)

The next field contains the username@host of the user. The final field displays the number of server hops and the user's GECOS information. This command may be executed on a channel, such as "WHO #lamers" The output will consist of WHO listings for each user on the channel.

This command may also be used in conjunction with wildcards such as * and ?.

Defined in: RFC 1459 "4.5.1 Who query"

whois
Syntax: /whois  This displays a small amount of information about the given nick(s).

Defined in: RFC 1459 "4.5.2 Whois query"

Channel operator commands
These commands can only be issued by users with operator or half-op privileges.

invite
Syntax: /invite <#channel> Invites to join <#channel>.

kick
Syntax: /kick <#channel> [reason] Removes from <#channel>. The kicked user can, of course, rejoin, so this is rarely effective in keeping someone out, but it does serve as a warning.

mode
Syntax: /mode <#channel|nick> <+/-parameters> This sets a mode on [#channel], or on the specified user. The required level depends on the modes. Note that you can use it on yourself without any channel modes set on you (mIRC users can use //mode $me <+/-parameters> to set modes).

op
Syntax: /op Gives channel operator status to.

deop
Syntax: /deop Removes channel operator status from.

topic
Syntax: /topic [#channel] Sets the current topic to. Only available to ops/halfops when channel mode +t is set; otherwise, anyone can use it. When no text is given, returns the current topic on the channel.

The most common modes are:

These modes differ from network to network and from IRCd to IRCd.

See also:
 * RFC 1459 (Original RFC)
 * RFC 2810 (IRC Architecture)
 * RFC 2811 (IRC Channel Management)
 * RFC 2812 (IRC Client Protocol)
 * RFC 2813 (IRC Server Protocol)

IRC operator commands
IRC operators (IRCops) are given a special set of commands for server and network maintenance. Many of these can be abused quite easily, so care must be taken before making somebody an IRCop.

oper
Syntax: /oper This will allow the user issuing the command to gain IRC Operator privileges.

kill
Syntax: /kill This will disconnect a user from the network you issued the kill command on. But the user is allowed to reconnect after the kill

gline
Syntax: /gline  [reason] This command globally bans anybody matching that hostmask from all servers linked to the IRC network. All such users will be automatically disconnected.

Time has to be specified in seconds or on most modern IRCds can be specified like 1d2h3m4s (1 day 2 hours 3 minutes 4 seconds). 0 can be given for a ban lasting an infinite amount of time.

kline
Syntax: /kline  [reason] Like gline, but only bans the given hostmask from the server the command was issued from. If there is more than one server linked to the network, the user can reconnect and get on another server. K-lines are commonly used to enforce geographical limits, so that, for example, somebody in Germany can't connect to a Canadian server.

opmode
Syntax: /opmode [!]<#channel> <-|+modes> [args] The command user can perform mode changes on a channel without being opped or hopped. (Server mode.) The ! indicates that the channel is registered. (U:lined service being on the channel.)

shun
Syntax: /shun  [reason] Shun forces the server to ignore any commands from the given context except for ping responses and the /admin command. Shunned users are not notified of the use of the command, though they could figure it out rather easily. Shuns are not implemented on many IRC networks for their end result doesn't provide much more functionality than a G-line or K-line.

wallops
Syntax: /wallops Sends a message to all users who currently have +w set in their usermodes. (Note: Depending on the config specifications, wallops can be specified to IRC operators only, even if non-opers have +w set, e.g. # F:WALLOPS_OPER_ONLY:FALSE)