4 Network management commands
5 ~~~~~~~~~~~~~~~~~~~~~~~~~~~
7 .. note:: All commands and names are case insensitive. Parameters
8 consisting of one or more separate letters, such as in ``MODE``,
9 ``STATS`` and ``WHO``, are case sensitive.
16 CONNECT target [port] [source]
18 Initiate a connection attempt to server target. If a port is given,
19 connect to that port on the target, otherwise use the one given in
20 ``ircd.conf``. If source is given, tell that server to initiate the
21 connection attempt, otherwise it will be made from the server you are
24 To use the default port with source, specify 0 for port.
33 Closes down the link to server from this side of the network. If a
34 reason is given, it will be sent out in the server notices on both sides
42 REHASH [BANS | DNS | MOTD | OMOTD | TKLINES | TDLINES | TXLINES | TRESVS | REJECTCACHE | HELP] [server]
44 With no parameter given, ``ircd.conf`` will be reread and parsed. The
45 server argument is a wildcard match of server names.
48 Rereads ``kline.conf``, ``dline.conf``, ``xline.conf``,
49 ``resv.conf`` and their .perm variants
52 Reread ``/etc/resolv.conf``.
55 Reload the ``MOTD`` file
58 Reload the operator ``MOTD`` file
61 Clears temporary ``K:lines``.
64 Clears temporary ``D:lines``.
67 Clears temporary ``X:lines``.
70 Clears temporary reservations.
73 Clears the client rejection cache.
76 Refreshes the help system cache.
85 Cause an immediate total shutdown of the IRC server, and restart from
86 scratch as if it had just been executed.
88 This reexecutes the ircd using the compiled-in path, visible as ``SPATH`` in
91 .. note:: This command cannot be used remotely. The server name is
92 used only as a safety measure.
101 Immediately terminate the IRC server, after sending notices to all
102 connected clients and servers
104 .. note:: This command cannot be used remotely. The server name is
105 used only as a safety measure.
112 SET [ ADMINSTRING | AUTOCONN | AUTOCONNALL | FLOODCOUNT | IDENTTIMEOUT | MAX | OPERSTRING | SPAMNUM | SPAMTIME | SPLITMODE | SPLITNUM | SPLITUSERS ] value
114 The ``SET`` command sets a runtime-configurable value.
116 Most of the ``ircd.conf`` equivalents have a ``default_prefix`` and are
117 only read on startup. ``SET`` is the only way to change these at run time.
119 Most of the values can be queried by omitting value.
122 Sets string shown in ``WHOIS`` for admins. (umodes +o and +a set, umode
126 Sets auto-connect on or off for a particular server. Takes two
127 parameters, server name and new state.
129 To see these values, use ``/stats c``. Changes to this are lost on a
133 Globally sets auto-connect on or off. If disabled, no automatic
134 connections are done; if enabled, automatic connections are done
135 following the rules for them.
138 The number of lines allowed to be sent to a connection before
139 throttling it due to flooding. Note that this variable is used for
140 both channels and clients.
142 For channels, op or voice overrides this; for users, IRC operator
143 status or op or voice on a common channel overrides this.
146 Timeout for requesting ident from a client.
149 Sets the maximum number of connections to value.
151 This number cannot exceed maxconnections - ``MAX_BUFFER``.
152 maxconnections is the rlimit for number of open files. ``MAX_BUFFER``
153 is defined in config.h, normally 60.
155 ``MAXCLIENTS`` is an alias for this.
158 Sets string shown in ``WHOIS`` for opers (umode ``+o`` set, umodes ``+a`` and ``+S``
162 Sets how many join/parts to channels constitutes a possible spambot.
165 Below this time on a channel counts as a join/part as above.
168 Sets splitmode to value:
171 splitmode is permanently on
174 splitmode is permanently off (default if ``no_create_on_split``
175 and ``no_join_on_split`` are disabled)
178 ircd chooses splitmode based on ``SPLITUSERS`` and ``SPLITNUM`` (default
179 if ``no_create_on_split`` or ``no_join_on_split`` are enabled)
182 Sets the minimum amount of users needed to deactivate automatic
186 Sets the minimum amount of servers needed to deactivate automatic
187 splitmode. Only servers that have finished bursting count for this.
189 User management commands
190 ~~~~~~~~~~~~~~~~~~~~~~~~
199 Disconnects the user with the given nick from the server they are
200 connected to, with the reason given, if present, and broadcast a server
201 notice announcing this.
203 Your nick and the reason will appear on channels.
208 Closes all connections from and to clients and servers who have not
209 completed registering.
216 KLINE [length] [user@host | user@a.b.c.d] [ON servername] [:reason]
218 Adds a ``K:line`` to ``kline.conf`` to ban the given ``user@host`` from using
221 If the optional parameter length is given, the ``K:line`` will be temporary
222 (i.e. it will not be stored on disk) and last that long in minutes.
224 If an IP address is given, the ban will be against all hosts matching
225 that IP regardless of DNS. The IP address can be given as a full address
226 (``192.168.0.1``), as a CIDR mask (``192.168.0.0/24``), or as a glob
229 All clients matching the ``K:line`` will be disconnected from the server
232 If a reason is specified, it will be sent to the client when they are
233 disconnected, and whenever a connection is attempted which is banned.
235 If the ON part is specified, the ``K:line`` is set on servers matching the
236 given mask (provided a matching ``shared{}`` block exists there). Otherwise,
237 if specified in a ``cluster{}`` block, the ``K:Line`` will be propagated across
238 the network accordingly.
245 UNKLINE user@host [ON servername]
247 Will attempt to remove a ``K:line`` matching ``user@host`` from ``kline.conf``,
248 and will flush a temporary ``K:line``.
255 XLINE [length] mask [ON servername] [:reason]
257 Works similarly to ``KLINE``, but matches against the real name field. The
258 wildcards are ``*`` (any sequence), ``?`` (any character), ``#`` (a digit) and ``@`` (a
259 letter); wildcard characters can be escaped with a backslash. The
260 sequence ``\s`` matches a space.
262 All clients matching the ``X:line`` will be disconnected from the server
265 The reason is never sent to users. Instead, they will be exited with
268 If the ON part is specified, the ``X:line`` is set on servers matching the
269 given mask (provided a matching ``shared{}`` block exists there). Otherwise,
270 if specified in a ``cluster{}`` block, the ``X:line`` will be propagated across
271 the network accordingly.
278 UNXLINE mask [ON servername]
280 Will attempt to remove an ``X:line`` from ``xline.conf``, and will flush a
281 temporary ``X:line``.
288 RESV [length] [channel | mask] [ON servername] [:reason]
290 If used on a channel, “jupes” the channel locally. Joins to the channel
291 will be disallowed and generate a server notice on ``+y``, and users will
292 not be able to send to the channel. Channel jupes cannot contain
295 If used on a nickname mask, prevents local users from using a nick
296 matching the mask (the same wildcard characters as xlines). There is no
297 way to exempt the initial nick from this.
299 In neither case will current users of the nick or channel be kicked or
302 This facility is not designed to make certain nicks or channels
305 The reason is never sent to users.
307 If the ON part is specified, the resv is set on servers matching the
308 given mask (provided a matching ``shared{}`` block exists there). Otherwise,
309 if specified in a ``cluster{}`` block, the resv will be propagated across
310 the network accordingly.
317 UNRESV [channel | mask] [ON servername]
319 Will attempt to remove a resv from ``resv.conf``, and will flush a
327 DLINE [length] a.b.c.d [ON servername] [:reason]
329 Adds a ``D:line`` to ``dline.conf``, which will deny any connections from
330 the given IP address. The IP address can be given as a full address
331 (``192.168.0.1``) or as a CIDR mask (``192.168.0.0/24``).
333 If the optional parameter length is given, the ``D:line`` will be temporary
334 (i.e. it will not be stored on disk) and last that long in minutes.
336 All clients matching the ``D:line`` will be disconnected from the server
339 If a reason is specified, it will be sent to the client when they are
340 disconnected, and, if ``dline_reason`` is enabled, whenever a connection is
341 attempted which is banned.
343 ``D:lines`` are less load on a server, and may be more appropriate if
344 somebody is flooding connections.
346 If the ON part is specified, the ``D:line`` is set on servers matching the
347 given mask (provided a matching ``shared{}`` block exists there, which is
348 not the case by default). Otherwise, the D:Line will be set on the local
351 Only ``exempt{}`` blocks exempt from ``D:lines``. Being a server or having
352 ``kline_exempt`` in ``auth{}`` does *not* exempt (different from ``K/G/X:lines``).
359 UNDLINE a.b.c.d [ON servername]
361 Will attempt to remove a ``D:line`` from ``dline.conf``, and will flush a
362 temporary ``D:line``.
371 Looks up X:Lines matching the given gecos.
378 TESTLINE [nick!] [user@host | a.b.c.d]
380 Looks up the given hostmask or IP address and reports back on any ``auth{}``
381 blocks, D: or K: lines found. If nick is given, also searches for nick
384 For temporary items the number of minutes until the item expires is
385 shown (as opposed to the hit count in STATS q/Q/x/X).
387 This command will not perform DNS lookups; for best results you must
388 testline a host and its IP form.
390 The given username should begin with a tilde (~) if identd is not in
391 use. As of charybdis 2.1.1, ``no_tilde`` and username truncation will be
392 taken into account like in the normal client access check.
394 As of charybdis 2.2.0, a channel name can be specified and the RESV will
395 be returned, if there is one.
402 TESTMASK hostmask [gecos]
404 Searches the network for users that match the hostmask and gecos given,
405 returning the number of matching users on this server and other servers.
407 The hostmask is of the form user@host or user@ip/cidr with \* and ?
408 wildcards, optionally preceded by nick!.
410 The gecos field accepts the same wildcards as xlines.
412 The IP address checked against is ``255.255.255.255`` if the IP address is
413 unknown (remote client on a TS5 server) or 0 if the IP address is hidden
421 LUSERS [mask] [nick | server]
423 Shows various user and channel counts.
425 The mask parameter is obsolete but must be used when querying a remote
433 TRACE [server | nick] [location]
435 With no argument or one argument which is the current server, TRACE
436 gives a list of all connections to the current server and a summary of
439 With one argument which is another server, TRACE displays the path to
440 the specified server, and all servers, opers and -i users on that
441 server, along with a summary of connection classes.
443 With one argument which is a client, TRACE displays the path to that
444 client, and that client's information.
446 If location is given, the command is executed on that server; no path is
449 When listing connections, type, name and class is shown in addition to
450 information depending on the type:
453 A server we are trying to make a TCP connection to.
456 A server we have established a TCP connection to, but is not yet
460 An incoming connection that has not yet registered as a user or a
461 server (“unknown”). Shows the username, hostname, IP address and the
462 time the connection has been open. It is possible that the ident or
463 DNS lookups have not completed yet, and in any case no tildes are
464 shown here. Unknown connections may not have a name yet.
467 A registered unopered user. Shows the username, hostname, IP
468 address, the time the client has not sent anything (as in STATS l)
469 and the time the user has been idle (from PRIVMSG only, as in
473 Like User, but opered.
476 A registered server. Shows the number of servers and users reached
477 via this link, who made this connection and the time the server has
487 Shows client information about the given target, or about all local
488 clients if no target is specified.
497 Displays effective operator privileges for the specified nick, or for
498 yourself if no nick is given. This includes all privileges from the
499 operator block, the name of the operator block and those privileges from
500 the auth block that have an effect after the initial connection.
502 The exact output depends on the server the nick is on, see the matching
503 version of this document. If the remote server does not support this
504 extension, you will not receive a reply.
511 MASKTRACE hostmask [gecos]
513 Searches the local server or network for users that match the hostmask
514 and gecos given. Network searches require the ``oper_spy`` privilege and an
515 '!' before the hostmask. The matching works the same way as TESTMASK.
517 The hostmask is of the form ``user@host`` or ``user@ip/cidr`` with ``*`` and ``?``
518 wildcards, optionally preceded by ``nick!``.
520 The gecos field accepts the same wildcards as xlines.
522 The IP address field contains ``255.255.255.255`` if the IP address is
523 unknown (remote client on a TS5 server) or ``0`` if the IP address is hidden
533 Displays information about users in a channel. Opers with the ``oper_spy``
534 privilege can get the information without being on the channel, by
535 prefixing the channel name with an ``!``.
537 The IP address field contains ``255.255.255.255`` if the IP address is
538 unknown (remote client on a TS5 server) or ``0`` if the IP address is hidden
546 SCAN UMODES +modes-modes [no-list] [list] [global] [list-max number] [mask nick!user@host]
548 Searches the local server or network for users that have the umodes
549 given with + and do not have the umodes given with -. no-list disables
550 the listing of matching users and only shows the count. list enables the
551 listing (default). global extends the search to the entire network
552 instead of local users only. list-max limits the listing of matching
553 users to the given amount. mask causes only users matching the given
554 nick!user@host mask to be selected. Only the displayed host is
555 considered, not the IP address or real host behind dynamic spoofs.
557 The IP address field contains ``255.255.255.255`` if the IP address is
558 unknown (remote client on a TS5 server) or 0 if the IP address is hidden
561 Network searches where a listing is given are operspy commands.
570 Set the hostname associated with a particular nick for the duration of
571 this session. This command is disabled by default because of the abuse
572 potential and little practical use.
574 Miscellaneous commands
575 ~~~~~~~~~~~~~~~~~~~~~~
582 ADMIN [nick | server]
584 Shows the information in the ``admin{}`` block.
593 Shows information about the authors of the IRC server, and some
594 information about this server instance. Opers also get a list of
595 configuration options.
604 Shows the local time on the given server, in a human-readable format.
611 VERSION [nick | server]
613 Shows version information, a few compile/config options, the SID and the
614 005 numerics. The 005 numeric will be remapped to 105 for remote
622 STATS [type] [nick | server]
624 Display various statistics and configuration information.
630 Show active nick delays
639 Show temporary ``D:lines``
642 Show permanent ``D:lines``
645 Show exempt blocks (exceptions to ``D:lines``)
651 Show file descriptors
654 Show ``hub_mask``/``leaf_mask``
657 Show auth blocks, or matched auth blocks
660 Show temporary ``K:lines``, or matched ``K:lines``
663 Show permanent ``K:lines``, or matched ``K:lines``
666 Show hostname and link information about the given nick. With a
667 server name, show information about opers and servers on that
668 server; opers get information about all local connections if they
669 query their own server. No hostname is shown for server connections.
672 Like l, but show IP address instead of hostname
675 Show commands and their usage statistics (total counts, total bytes,
676 counts from server connections)
679 Show blacklist blocks (DNS blacklists) with hit counts since last
680 rehash and (parenthesized) reference counts. The reference count
681 shows how many clients are waiting on a lookup of this blacklist or
682 have been found and are waiting on registration to complete.
691 Show logged on network operators which are not set AWAY.
694 Show listen blocks (ports)
697 Show temporarily resv'ed nicks and channels with hit counts
700 Show permanently resv'ed nicks and channels with hit counts since
704 Show resource usage by the ircd
707 Show generic server statistics about local connections
713 Show shared (c), cluster (C) and service (s) blocks
716 Show connected servers and brief status
719 Show temporary ``X:lines`` with hit counts
722 Show permanent ``X:lines`` with hit counts since last rehash bans
728 Show memory usage statistics
731 Show ziplinks statistics
734 Show connected servers and link information about them
743 Sends a WALLOPS message to all users who have the +w umode set. This is
744 for things you don't mind the whole network knowing about.
753 Sends an OPERWALL message to all opers who have the +z umode set. +z is
754 restricted, OPERWALL should be considered private communications.