List of IRC commands

This is an old revision of this page, as edited by 84.94.4.206 (talk) at 19:19, 10 September 2005 (kline). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

This is a list of commands used in IRC.

  • The leading "/" is the command indicator. In most cases, you can change this, e.g. to "$", so that "/me" would change to "$me". But "/" is almost always the default.
  • Those 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. Always refer to your clients help file(s) for information on commands and what to do, etc.
  • Hostmasks come in the form nick!ident@host. They can be used anywhere a nick would be. They also accept the wildcard character *, which matches any string of characters. For example, *!MrWiki@Wikipedia.org would match any nick with that ident and host.

me

Syntax:

/me <text>

Displays the nickname, followed by <text>.

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.

kick

Syntax:

/kick <#channel> <nick> [reason]

Used by ops and halfops to remove someone from a channel. They can, of course, rejoin, so this is rarely effective in keeping someone out, but it does serve as a warning.

ban

Syntax:

/ban [#channel] <nick!user@hostmask>

Sets a channel ban on the specified mask. This command will only set the ban, you must kick the user afterwards, however they will not be able to talk while in the channel and in some cases change their nickname. You can also achieve this command using the /mode command shown below with the +b channel mode.

ignore

Syntax:

/ignore <nick!user@hostmask>

Your client will not display lines from the specified user. This command varies from client to client, for more information on what commands an irc client uses see it's help file(s).

topic

Syntax:

/topic [#channel] <text>

Sets the current topic to <text>. Only available to ops when channel mode +t is set.

join

Syntax:

/join <#channel>

Joins <#channel>.

part

Syntax:

/part <#channel> [reason]

Parts <#channel>. You have to be on <channel> to use /part. If no reason is given, a default (usually user-defined) is used.

quit

Syntax:

/quit [reason]

This will make the server disconnect you from it. At times if a server is laggy you won't disconnect right off the bat, so instead some client's 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.

mode

Syntax:

/mode [#channel|nick|nick!ident@host] <+/-> [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.

oper

Syntax:

/oper <nick|[nick!]ident@host> <password>

This will make the specified user an IRCop. You must be an IRCop yourself to use this command.

kill

Syntax:

/kill <nick|nick!ident@host> [reason]

This will disconnect a user from the network you issued the kill command on. You must be an IRCop to use this command.

gline

Syntax:

/gline <nick!user@host> [time] [reason]

This requires you to be an IRCop. Once issued it will globally ban anybody matching that hostmask from all servers linked to the IRC network.

Time has to be specified in seconds or on most modern IRCDs can be specified like 1d2h4m5s (1 day 2 hours 4 minutes 5 seconds)

kline

Syntax

/kline <nick!user@host> [reason]

Not to be confused with the above gline command. Kline will only ban the given hostmask from the server the command was issued. If there are more than one server linked to form a network, the user can reconnect and get on another server. You must be an IRCop to use this command.

nick

Syntax:

/nick <nickname>

Sets your nickname to <nickname>.