wsIrc

Access the global community

  • Increase font size
  • Default font size
  • Decrease font size
Home IRC Help Advanced Commands overview

Commands overview

E-mail Print PDF

ADMIN

Syntax:

/admin [<server>]

Instructs the server to return information about the administrator of the server specified by <target>, or the current server if target is omitted.

AWAY

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. If <message> is omitted, the away status is removed.

CONNECT

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>. This command should only be available to IRC Operators.

DIE

Syntax:

/die

Instructs the server to shut down.

ERROR

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.

INFO

Syntax:

/info [<target>]

Returns information about the <target> server, or the current server if <target> is omitted. 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.

INVITE

Syntax:

/invite <nickname> <channel>

Invites <nickname> to the channel <channel>. <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.

ISON

Syntax:

/ison <nicknames>

Queries the server to see if the clients in the space-separated list <nicknames> are currently on the network. 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.

JOIN

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>. If the channel(s) do not exist then they will be created.

KICK

Syntax:

/kick <channel> <client> [<message>]

Forcibly removes <client> from <channel>. This command may only be issued by channel operators.

KILL

Syntax:

/kill <client> <comment>

Forcibly removes <client> from the network. This command may only be issued by IRC operators.

LINKS

Syntax:

/links [<remote server> [<server mask>]]

Lists all server links matching <server mask>, if given, on <remote server>, or the current server if omitted.

LIST

Syntax:

/list [<channels> [<server>]]

Lists all channels on the server. 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.

LUSERS

Syntax:

/lusers [<mask> [<server>]]

Returns statistics about the size of the network. 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.

MODE

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.

MOTD

Syntax:

/motd [<server>]

Returns the message of the day on <server> or the current server if it is omitted.

NAMES

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. 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.

NICK

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.

NOTICE

Syntax:

/notice <msgtarget> <message>

This command works similarly to PRIVMSG, except automatic replies must never be sent in reply to NOTICE messages.

OPER

Syntax:

/oper <username> <password>

Authenticates a user as an IRC operator on that server/network.

PART

Syntax:

/part <channels>

Causes a user to leave the channels in the comma-separated list <channels>.

PASS

Syntax:

/pass <password>

Sets a connection password. This command must be sent before the NICK/USER registration combination.

PING

Syntax:

/ping <server1> [<server2>]

Tests the presence of a connection. A PING message results in a PONG reply. If <server2> is specified, the message gets passed on to it.

PONG

Syntax:

/pong <server2> [<server2>]

This command is a reply to the PING command and works in much the same way.

PRIVMSG

Syntax:

/privmsg <msgtarget> <message>

Sends <message> to <msgtarget>, which is usually a user or channel.

QUIT

Syntax:

/quit [<message>]

Disconnects the user from the server.

REHASH

Syntax:

/rehash

Causes the server to re-read and re-process its configuration file(s). This command can only be sent by IRC Operators.

RESTART

Syntax:

/restart

Restarts a server. It may only be sent by IRC Operators.

SERVICE

Syntax:

/service <nickname> <reserved> <distribution> <type> <reserved> <info>

Registers a new service on the network.

SERVLIST

Syntax:

/servlist [<mask> [<type>]]

Lists the services currently on the network.

SERVER

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. This message is also used to pass server data over whole net. <hopcount> details how many hops (server connections) away <servername> is. <info> contains addition human-readable information about the server.

SQUERY

Syntax:

/squery <servicename> <text>

Identical to PRIVMSG except the recipient must be a service.

SQUIT

Syntax:

/squit <server> <comment>

Causes <server> to quit the network.

STATS

Syntax:

/stats <query> [<server>]

Returns statistics about the current server, or <server> if it's specified.

SUMMON

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.

TIME

Syntax:

/time [<server>]

Returns the local time on the current server, or <server> if specified.

TOPIC

Syntax:

/topic <channel> [<topic>]

Allows the client to query or set the channel topic on <channel>. 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.

TRACE

Syntax:

/trace [<target>]

Trace a path across the IRC network to a specific server or client, in a similar method to traceroute.

USER

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. <realname> may contain spaces, and thus must be prefixed with a colon.

USERHOST

Syntax:

/userhost <nickname> [<nickname> <nickname> ...]

Returns a list of information about the nicknames specified.

USERS

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.

VERSION

Syntax:

/version [<server>]

Returns the version of <server>, or the current server if omitted.

WALLOPS

Syntax:

/wallops <message>

Sends <message> to all operators connected to the server (RFC 1459), or all users with user mode 'w' set (RFC 2812).

WHO

Syntax:

/who [<name> ["o"]]

Returns a list of users who match <name>. If the flag "o" is given, the server will only return information about IRC Operators.

WHOIS

Syntax:

/whois [<server>] <nicknames>

Returns information about the comma-separated list of nicknames masks <nicknames>. If <server> is given, the command is forwarded to it for processing.

WHOWAS

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). 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.

Last Updated on Tuesday, 19 January 2010 20:28