General IRC Commands



General IRC Commands

The following commands will provide some information about the servers and are available for all users.
Parameters which are inside angle brackets < > are mandatory while parameters which are inside square brackets [ ] are optional.

The IRC commands should apply to some chat applets like the ICQ applet and external IRC clients (mIRC, XChat etc.).

Note that some commands might not work on some networks.





Commands

Admin     Invite     Kick Lusers     Msg Part Topic Whowas
Away Ison Knock     Me Names     Ping Userhost    
Cycle Join Links Mode Nick Quit Who
Info Join 0 List MOTD Notice Time     Whois




ADMIN

/admin [server]

Retrieves administrative information about the IRC server to which you are connected. Often provides an email address for the server administrator and indicates which server administrators are online for that server. If the server name is omitted, then this command will provide information about the server to which you are connected.

Examples:

/admin

Gives administrative information about the server to which you are connected.

/admin irc-m06.icq.aol.com




AWAY

/away [message]

Leave a message explaining that you are not currently paying attention to IRC. Whenever someone sends you a MSG or does WHOIS on you, they automatically see whatever message you set. Using /away with no parameters marks you as no longer being away.

Examples:

/away Gone for now.

This will mark you as away with the given message.

/away

This will mark you as no longer being away (back).



CYCLE

/cycle <#channel1> [#channel2]

Parts and rejoins the channel(s) you are in.

Examples:

/cycle #ophelp

Lets you part and rejoin #ophelp

/cycle #ophelp,#newbies

Lets you part and rejoin #ophelp and #newbies



INFO

/info

Displays information about the server that you are connected to including up time, address and version.



INVITE

/invite <nickname> <#channel>

Invites the given user to the given channel.

Example:

/invite Johnny #ophelp

This will invite user Johnny to #ophelp.



ISON

/ison <nickname1> [nickname2]...

Checks whether the given nicknames are currently connected (will return the connected nicks).



JOIN

/join <#channel>

Enter a channel. If the channel is empty and not registered you will be automatically oped in it.

Example:

/join #ophelp

Lets you join #ophelp



JOIN 0

/join 0

Lets you part all channels.



KICK

/kick <#channel> <nickname>

Forcibly removes (kicks) a user from a channel. This can only be done by a channel operator.



KNOCK

/knock <#channel> <message>

For channels which are invite only, you can "Knock" on the channel to request an invite.

Example:

/knock #ophelp Hey, let me in!

Sends a message to the #ophelp chanops only.



LINKS

/links

This command will show all the servers currently linked together on the network.



LIST

/list [#channel] [</>#]

Lists currently available channels matching your search.

Examples:

/list

Lists all currently available channels (except channels with +s or +p modes).

/list <5

List all currently available channels with 5 or less users.

/list >100

List all currently available channels with 100 or more users.

/list #ophelp

Lists only #ophelp

/list *icq*

Lists all currently available channels with "icq" in their name.



LUSERS

/lusers [server]

Provides Local and Global user information such as current and maximum user count.



ME

/me <message>

Tells the current channel or query about what you are doing.

Example:

/me is going to the shop.

If your nickname is "Johnny" it will show * Johnny is going to the shop. in the current open channel or query window.



MODE

/MODE <nickname> +/- mode(s)

Sets user modes.

/MODE <#channel> +/- mode(s)

Sets channel modes.



MOTD

/motd [server name]

Display the current "Message of the day" for the server that you designate. If you leave the server field blank it will return with the current server you are logged onto.

Example:

/motd irc-m05.icq.aol.com

Displays the current "Message of the day" for irc-m05.icq.aol.com.



MSG

/msg <nickname|#channel> <message>

Send a private message to the given nickname or messages the given channel (you can message channels without being on them only if they don't have +n mode set on).

Examples:

/msg Johnny Hey dude!

Sends a private message to user Johnny saying "Hey dude!"

/msg #ophelp Hi all

Writes "Hi all" inside #ophelp



NAMES

/names <#channel>

Provides a list of users on the specified channel.



NICK

/nick <nickname>

Changes your current nick to the given nick.



NOTICE

/notice <nickname|#channel> <message>

Send a notice to the given nickname or channel (you can notice channels without being on them only if they don't have +n mode set on).

Examples:

/notice Johnny Hey there..

Sends a notice to user Johnny saying "Hey there..".

/notice #ophelp Hi everybody!

Sends a notice to #ophelp saying "Hi everybody!".



PART

/part [#channel]

Parts the given channel. If you don't provide a channel you'll part your current open channel.

Example:

/part #ophelp

Will make you part #ophelp



PING

/ping <server> <server2>

The PING command is used to test the presence of an active client or server at the other end of the connection. Servers send a PING message at regular intervals if no other activity detected coming from a connection. If a connection fails to respond to a PING message within a set amount of time, that connection is closed. A PING message MAY be sent even if the connection is active.
Note that this is different from a CTCP PING command..



QUIT

/quit [reason]

This will disconnect you from IRC and will give the optional message as the reason for your departure (this message only appears to people who are on the same channels as you).

Example:

/quit Bye!

Disconnects you from the network with the message "Bye!".



TIME

/time

This command will display the current local time and date of the server to which you are connected.



TOPIC

/topic <#channel> <new topic>

Changes the topic for the given channel. You can only change the topic when you're Op in the given channel or the channel mode isn't +t.

Example:

/topic #ophelp Welcome to #ophelp!




USERHOST

/userhost <nickname1> [nickname2]...

Returns the user@host information for given nicknames.



WHO

/who <nickname|#channel>

Shows short information about the given nickname only if one of the two following conditions is met: you are in channel with 'nickname' or 'nickname' is not invisible (+i). When the given parameter is #channel it will display the users and their status in that channel only if one of the two following conditions is met: you are in #channel or #channel is not secret or private (+s or +p).



WHOIS

/whois <nickname>

Shows information about the given nickname.



WHOWAS

/whowas <nickname>

For a certain amount of time after a client has left the server you can still get information about that client. The information is the same as the information in the WHOIS command.



changed February 10, 2012