2 ngIRCd - Next Generation IRC Server
3 http://ngircd.barton.de/
5 (c)2001-2013 Alexander Barton and Contributors.
6 ngIRCd is free software and published under the
7 terms of the GNU General Public License.
12 This file lists all commands available on ngIRCd. It is written in a format
13 that is human readable as well as machine parseable and therefore can be used
14 as "help text file" of the daemon.
16 In short, the daemon reads this file on startup and parses it as following
17 when an user issues a "HELP <cmd>" command:
19 1. Search the file for a line "- <cmd>",
20 2. Output all subsequent lines that start with a TAB (ASCII 9) character
21 to the client using NOTICE commands, treat lines containing a single "."
22 after the TAB as empty lines.
23 3. Break at the first line not starting with a TAB character.
25 This format allows to have information to each command stored in this file
26 which will not be sent to an IRC user requesting help which enables us to
27 have additional annotations stored here which further describe the origin,
28 implementation details, or limits of the specific command which are not
29 relevant to an end-user but administrators and developers.
31 A special "Intro" block is returned to the user when the HELP command is
32 used without a command name:
36 This is ngIRCd, a server software for Internet Relay Chat (IRC)
37 networks. You can find more information about ngIRCd on its homepage:
38 <http://ngircd.barton.de>
40 Use "HELP COMMANDS" to get a list of all available commands and
41 "HELP <command-name>" to get help for a specific IRC command, for
42 example "HELP quit" or "HELP privmsg".
45 Connection Handling Commands
46 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
51 CAP REQ <capabilities>
52 CAP ACK <capabilities>
53 CAP NAK <capabilities>
57 List, request, and clear "IRC Capabilities".
59 Using this command, an IRC client can request additional "IRC
60 capabilities" during login or later on, which influences the
61 communication between server and client. Normally, these commands
62 aren't directly used by humans, but automatically by their client
63 software. And please note that issuing such commands manually can
64 irritate the client software used, because of the "non-standard"
65 behavior of the server!
67 - CAP LS: list all available capabilities.
68 - CAP LIST: list active capabilities of this connection.
69 - CAP REQ: Request particular capabilities.
70 - CAP ACK: Acknowledge a set of capabilities to be enabled/disabled.
71 - CAP NAK: Reject a set of capabilities.
72 - CAP CLEAR: Clear all set capabilities.
73 - CAP END: Indicate end of capability negotiation during login,
74 ignored in an fully registered session.
76 Please note that the <capabilities> must be given in a single
77 parameter but whitespace separated, therefore a command could look
78 like this: "CAP REQ :capability1 capability2 capability3" for example.
81 - <http://ircv3.atheme.org/specification/capability-negotiation-3.1>
82 - <http://ngircd.barton.de/doc/Capabilities.txt>
83 - doc/Capabilities.txt
86 CHARCONV <client-charset>
88 Set client character set encoding to <client-charset>.
90 After receiving such a command, the server translates all message
91 data received from the client using the set <client-charset> to the
92 server encoding (UTF-8), and all message data which is to be sent to
93 the client from the server encoding (UTF-8) to <client-charset>.
95 This enables older clients and clients using "strange" character sets
96 to transparently participate in channels and direct messages to
97 clients using UTF-8, which should be the default today.
100 - <http://ngircd.barton.de/doc/Protocol.txt>
106 Change your nickname to <nick>.
109 PASS <password> <version> <flags> [<options>]
111 Set a connection <password>. This command must be sent before the
112 NICK/USER registration combination.
114 See doc/Protocol.txt for more info.
117 PING <server1> [<server2>]
119 Tests the presence of a connection. A PING message results in a PONG
120 reply. If <server2> is specified, the message gets passed on to it.
123 PONG <server1> [<server2>]
125 This command is a reply to the PING command and works in much the
129 QUIT [<quit-message>]
131 End IRC session and disconnect from the server.
133 If a <quit-message> has been given, it is displayed to all the
134 channels that you are a member of when leaving.
137 USER <user> <modes> <realname>
139 This command is used at the beginning of a connection to specify the
140 <user>name, hostname, <realname> and initial user <modes> of the
143 <realname> may contain spaces, and thus must be prefixed with a colon.
155 Provides the server with a message to automatically send in reply to a
156 PRIVMSG directed at the user, but not to a channel they are on.
158 If <message> is omitted, the away status is removed.
163 Show help information for a specific IRC <command>. The <command> name
166 Use the command "HELP Commands" to get a list of all available commands.
168 The HELP command isn't specified by any RFC but implemented by most
169 daemons. If no help text could be read in, ngIRCd outputs a list of all
170 implemented commands when receiving a plain "HELP" command as well as
173 ngIRCd replies using "NOTICE" commands like ircd 2.10/2.11; other
174 implementations are using numerics 704, 705, and 706.
178 MODE <nickname> <flags> (user)
179 MODE <channel> <flags> [<args>]
181 The MODE command is dual-purpose. It can be used to set both (user) and
184 See doc/Modes.txt for more information.
187 NOTICE <target> <notice>
189 Send <notice> to <target> (nick or channel).
191 This command works similarly to PRIVMSG, except automatic replies must
192 never be sent in reply to NOTICE messages.
195 PRIVMSG <target> <message>
197 Send <message> to <target> (nick or channel).
199 Common IRC clients use MSG as PRIVMSG alias.
200 (Some clients use "QUERY <nick> [<message>]" to open a private chat.)
203 Status and Informational Commands
204 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
209 Show administrative information about an IRC server in the network.
211 <target> can be a server name, the nickname of a client connected to
212 a specific server, or a mask matching a server name in the network.
213 The server of the current connecion is used when <target> is omitted.
216 - RFC 2812, 3.4.9 "Admin command"
221 Show the version, birth & online time of an IRC server in the network.
223 <target> can be a server name, the nickname of a client connected to
224 a specific server, or a mask matching a server name in the network.
225 The server of the current connecion is used when <target> is omitted.
228 - RFC 2812, 3.4.10 "Info command"
233 Queries the server to see if the clients in the space-separated list
234 <nicknames> are currently on the network.
236 The server returns only the <nicknames> that are on the network in a
237 space-separated list. If none of the clients are on the network the
238 server returns an empty list.
241 LINKS [<remote server> [<server mask>]]
243 Lists all server links matching <server mask>, if given,
244 on <remote server>, or the current server if omitted.
247 LUSERS [<mask> [<server>]]
249 Return statistics about the size of the network. If called with no
250 arguments, the statistics will reflect the entire network.
252 If <mask> is given, it will return only statistics reflecting the
253 masked subset of the network.
254 If <server> is given, the command will be forwarded to <server>
260 Show "Message Of The Day" of the current server or specified <server>.
263 NAMES [<channels> [<server>]]
265 Returns a list of who is on the comma-separated list of <channels>,
268 If <channels> is omitted, all users are shown, grouped by channel name
269 with all users who are not on a channel being shown as part of channel
271 If <server> is specified, the command is sent to <server> for
275 STATS <flag> [<server>]
277 Returns statistics about the current server, or of a specified <server>.
281 g = G-Lines (Network-wide bans)
282 k = K-Lines (Server-local bans)
283 l = Link status (Parent server and own link)
284 m = IRC command status (usage count)
290 Show the local time of the current server, or of a specified <server>.
295 Trace a path across the IRC network of the current server, or if given
296 of a specific <server>, in a similar method to traceroute.
301 Show the user-host of <nicknames> (seperated by space).
302 "-" means <nick> is away,
303 "+" means <nick> is available,
304 "*" indicates your connection.
309 Show the ngIRCd version of the current server, or specified <server>.
314 Returns a list of users who match <target> (nick, hostmask or channel).
316 If the flag "o" is given, the server will only return information about
320 WHOIS [<server>] <nicknames>
322 Returns information about the comma-separated list of <nicknames>.
324 If <server> is given, the command is forwarded to it for processing.
327 WHOWAS <nickname> [<count> [<server>]]
329 Used to return information about <nicknames> that are no longer in use
330 (due to client disconnection, or nickname changes).
332 If given, the server will return information from the last <count> times
333 the nickname has been used.
334 If <server> is given, the command is forwarded to it for processing.
341 INVITE <nick> <channel>
343 Invites <nick> to <channel>.
344 <channel> does not have to exist, but if it does, only members of the
345 channel are allowed to invite other clients.
347 If the <channel> mode "+i" is set, only <channel> operators may invite
351 JOIN <channels> [<channel-keys>]
353 Makes the client join the <channels> (comma-separated list), specifying
354 the passwords, if needed, in the comma-separated <channel-keys> list.
355 A <channel-key> is only needed, if the <channel> mode "+k" is set.
357 If the channel(s) do not exist, then they will be created.
360 KICK <channel> <nick> [<kick-message>]
362 Remove <nick> from <channel>, optional with a <kick-message>.
364 Only <channel> operators are able to KICK.
367 LIST [<channels> [<server>]]
369 List all visible <channels> (comma-seperated list) on the current
371 If <server> is given, the command will be forwarded to <server> for
375 PART <channels> [<part-message>]
377 Leave <channels> (comma-separated list), optional with a
381 TOPIC <channel> <topic>
383 Set a <topic> for <channel>.
385 Only <channel> operators are able to set a <topic>.
388 Administrative Commands
389 ~~~~~~~~~~~~~~~~~~~~~~~
392 CONNECT <target server> [<port> [<remote server> [<mypwd> <peerpwd>]]]
394 Instructs the current server, or <remote server> if specified,
395 to connect to <target server>.
397 To connect <remote server> you need to have remote oper status.
398 If <port> is omitted, it uses the server port of the configuration.
399 If <mypwd> and <peerpwd> is given, it uses those passwords instead
400 of the ones in the configuration.
405 Instructs the server to shut down.
408 DISCONNECT [<remote server>]
410 Disconnects the current server, or <remote server> if specified.
411 To disconnect a <remote server> you need to have remote oper status.
414 GLINE <nick!user@hostmask> <seconds> :<reason>
416 This command provides timed G-Lines (Network-wide bans).
417 If a client matches a G-Line, it cannot connect to any server on
418 the IRC network. If you put 0 as <seconds>, it makes the G-Line
421 To remove a G-Line, type "GLINE <nick!user@hostmask>".
422 To list the G-Lines, type "STATS g".
427 Forcibly removes <nick> from the IRC network with a <reason>.
430 KLINE <nick!user@hostmask> <seconds> :<reason>
432 This command provides timed K-Lines (Server-local bans).
433 If a client matches a K-Line, it cannot connect to the issued server.
434 If you put 0 as <seconds>, it makes the K-Line permanent.
436 To remove a K-Line, type "KLINE <nick!user@hostmask>".
437 To list the K-Lines, type "STATS k".
440 OPER <user> <password>
442 Authenticates <user> as an IRC operator on the current server/network.
447 Causes the server to re-read and re-process its configuration file(s).
457 Sends <message> to all users with user mode "+w".
472 Server Protocol Commands
473 ~~~~~~~~~~~~~~~~~~~~~~~~
476 CHANINFO <channel> +<modes> [[<key> <limit>] <topic>]
478 CHANINFO is used by servers to inform each other about a channel:
479 its modes, channel key, user limits and its topic.
481 See doc/Protocol.txt for more information.
484 ERROR [<message> [<> [...]]]
486 Return an error message to the server. The first parameter, if given,
487 will be logged by the server, all further parameters are silently
490 This command is silently ignored on non-server and non-service links.
493 METADATA <target> <key> <value>
495 The METADATA command is used on server-links to update "metadata"
496 information of clients, like the hostname, the info text ("real name"),
499 See doc/Protocol.txt for more information.
508 Disconnects an IRC Server from the network.