]> jfr.im git - irc/rqf/shadowircd.git/blame - doc/sgml/oper-guide/commands.sgml
Remove unnecessary initialization that violates const.
[irc/rqf/shadowircd.git] / doc / sgml / oper-guide / commands.sgml
CommitLineData
212380e3 1 <chapter id="commands">
2 <title>Operator Commands</title>
3 <sect1>
4 <title>Network management commands</title>
5 <note>
6 <para>
b29e40b7
JT
7 All commands and names are case insensitive.
8 Parameters consisting of one or more separate letters,
9 such as in MODE, STATS and WHO, are case sensitive.
212380e3 10 </para>
11 </note>
12 <sect2>
13 <title>CONNECT</title>
14 <cmdsynopsis><command>CONNECT</command>
15 <arg choice=plain><replaceable>target</replaceable></arg>
16 <arg><replaceable>port</replaceable></arg>
17 <arg><replaceable>source</replaceable></arg>
18 </cmdsynopsis>
19 <para>
20 Initiate a connection attempt to server <replaceable class=parameter>target</replaceable>. If a port is
21 given, connect to that port on the target, otherwise use the one given in <filename>ircd.conf</filename>. If
22 <replaceable class=parameter>source</replaceable> is given, tell that server to initiate the connection
23 attempt, otherwise it will be made from the server you are attached to.
24 </para>
e129e2af
JT
25 <para>
26 To use the default port with <replaceable class=parameter>source</replaceable>,
27 specify 0 for <replaceable class=parameter>port</replaceable>.
28 </para>
212380e3 29 </sect2>
30 <sect2>
31 <title>SQUIT</title>
32 <cmdsynopsis>
33 <command>SQUIT</command>
34 <arg choice=plain><replaceable>server</replaceable></arg>
35 <arg><replaceable>reason</replaceable></arg>
36 </cmdsynopsis>
37 <para>
38 Closes down the link to <replaceable>server</replaceable> from this side of the network. If a reason is
39 given, it will be sent out in the server notices on both sides of the link.
40 </para>
41 </sect2>
42 <sect2>
43 <title>REHASH</title>
44 <cmdsynopsis>
45 <command>REHASH</command>
46 <group>
47 <arg>BANS</arg>
48 <arg>DNS</arg>
49 <arg>MOTD</arg>
50 <arg>OMOTD</arg>
212380e3 51 <arg>TKLINES</arg>
52 <arg>TDLINES</arg>
53 <arg>TXLINES</arg>
54 <arg>TRESVS</arg>
55 <arg>REJECTCACHE</arg>
56 <arg>HELP</arg>
57 </group>
58 <arg><replaceable>server</replaceable></arg>
59 </cmdsynopsis>
60 <para>
61 With no parameter given, <filename>ircd.conf</filename> will be reread and parsed.
62 The server argument is a wildcard match of server names.
63 </para>
64 <variablelist>
65 <title>Parameters</title>
66 <varlistentry>
67 <term>BANS</term>
68 <listitem>
69 <para>Rereads <filename>kline.conf</filename>, <filename>dline.conf</filename>, <filename>xline.conf</filename>, <filename>resv.conf</filename> and their .perm variants</para>
70 </listitem>
71 </varlistentry>
72 <varlistentry>
73 <term>DNS</term>
74 <listitem>
75 <para>Reread <filename>/etc/resolv.conf</filename>.</para>
76 </listitem>
77 </varlistentry>
78 <varlistentry>
79 <term>MOTD</term>
80 <listitem>
81 <para>Reload the MOTD file</para>
82 </listitem>
83 </varlistentry>
84 <varlistentry>
85 <term>OMOTD</term>
86 <listitem>
87 <para>Reload the operator MOTD file</para>
88 </listitem>
89 </varlistentry>
212380e3 90 <varlistentry>
91 <term>TKLINES</term>
92 <listitem>
93 <para>Clears temporary K:lines.</para>
94 </listitem>
95 </varlistentry>
96 <varlistentry>
97 <term>TDLINES</term>
98 <listitem>
99 <para>Clears temporary D:lines.</para>
100 </listitem>
101 </varlistentry>
102 <varlistentry>
103 <term>TXLINES</term>
104 <listitem>
105 <para>Clears temporary X:lines.</para>
106 </listitem>
107 </varlistentry>
108 <varlistentry>
109 <term>TRESVS</term>
110 <listitem>
111 <para>Clears temporary reservations.</para>
112 </listitem>
113 </varlistentry>
114 <varlistentry>
115 <term>REJECTCACHE</term>
116 <listitem>
117 <para>Clears the client rejection cache.</para>
118 </listitem>
119 </varlistentry>
120 <varlistentry>
121 <term>HELP</term>
122 <listitem>
123 <para>Refreshes the help system cache.</para>
124 </listitem>
125 </varlistentry>
126 </variablelist>
127 </sect2>
128 <sect2>
129 <title>RESTART</title>
130 <cmdsynopsis>
131 <command>RESTART</command>
132 <arg choice=plain><replaceable>server</replaceable></arg>
133 </cmdsynopsis>
134 <para>
135 Cause an immediate total shutdown of the IRC server, and restart from scratch as if it had just been executed.
136 </para>
137 <para>
138 This reexecutes the ircd using the compiled-in path, visible
139 as SPATH in INFO.
140 </para>
141 <note>
142 <para>This command cannot be used remotely. The server name is used only as a safety measure.</para>
143 </note>
144 </sect2>
145 <sect2>
146 <title>DIE</title>
147 <cmdsynopsis>
148 <command>DIE</command>
149 <arg choice=plain><replaceable>server</replaceable></arg>
150 </cmdsynopsis>
151 <para>Immediately terminate the IRC server, after sending notices to all connected clients and servers</para>
152 <note>
153 <para>This command cannot be used remotely. The server name is used only as a safety measure.</para>
154 </note>
155 </sect2>
156 <sect2>
157 <title>SET</title>
158 <cmdsynopsis>
159 <command>SET</command>
160 <group>
161 <arg>LOG</arg>
162 <arg>MAX</arg>
163 <arg>SPLITDELAY</arg>
164 <arg>SMALLNET</arg>
165 <arg>SPAMNUM</arg>
166 <arg>SPAMTIME</arg>
167 </group>
168 <arg choice=plain><replaceable>value</replaceable></arg>
169 </cmdsynopsis>
170 <para>The SET command sets a runtime-configurable value</para>
171 <variablelist>
172 <varlistentry>
173 <term>LOG</term>
174 <listitem>
175 <para>Logging level for ircd.log and syslog</para>
176 </listitem>
177 </varlistentry>
178 </variablelist>
179 <variablelist>
180 <varlistentry>
181 <term>MAX</term>
182 <listitem>
183 <para>Set the maximum connections allowed (may not exceed the compiled-in value HARD_FDLIMIT)</para>
184 </listitem>
185 </varlistentry>
186 <varlistentry>
187 <term>DRONETIME</term>
188 <listitem>
189 <para>Number of seconds in which DRONECOUNT messages must occur to trip the drone alarm</para>
190 </listitem>
191 </varlistentry>
192 <varlistentry>
193 <term>DRONECOUNT</term>
194 <listitem>
195 <para>Number of messages which constitutes a drone flood. 0 disables drone flood checking.</para>
196 </listitem>
197 </varlistentry>
198 <varlistentry>
199 <term>SPLITDELAY</term>
200 <listitem>
201 <para>Number of minutes after a connect burst begins until joining an empty channel will give you ops</para>
202 </listitem>
203 </varlistentry>
204 <varlistentry>
205 <term>SMALLNET</term>
206 <listitem>
207 <para>Sets the number of servers which are needed to constitute <quote>attached to the network</quote>, as opposed to <quote>split</quote></para>
208 </listitem>
209 </varlistentry>
210 <varlistentry>
211 <term>SPAMNUM</term>
212 <listitem>
213 <para>Sets the number of JOINs/PARTs which constitutes a possible spambot</para>
214 </listitem>
215 </varlistentry>
216 <varlistentry>
217 <term>SPAMTIME</term>
218 <listitem>
219 <para>Staying on a channel for less than this length of time adds to the SPAMNUM count</para>
220 </listitem>
221 </varlistentry>
222 </variablelist>
223 </sect2>
224 </sect1>
225 <sect1 id="usercommands">
226 <title>User management commands</title>
227 <sect2>
228 <title>KILL</title>
229 <cmdsynopsis>
230 <command>KILL</command>
231 <arg choice=plain><replaceable>nick</replaceable></arg>
232 <arg><replaceable>reason</replaceable></arg>
233 </cmdsynopsis>
234 <para>
235 Disconnects the user with the given nick from the server they are connected to,
236 with the reason given, if present, and broadcast a server notice announcing this.
237 </para>
238 <para>
239 Your nick and the reason will appear on channels.
240 </para>
241 </sect2>
242 <sect2>
243 <title>CLOSE</title>
244 <para>
245 Closes all connections from and to clients and servers who have not completed registering.
246 </para>
247 </sect2>
248 <sect2>
249 <title>KLINE</title>
250 <cmdsynopsis>
251 <command>KLINE</command>
252 <arg><replaceable>length</replaceable></arg>
253 <group>
254 <arg choice=plain><replaceable>user</replaceable>@<replaceable>host</replaceable></arg>
255 <arg choice=plain><replaceable>user</replaceable>@<replaceable>a</replaceable>.<replaceable>b</replaceable>.<replaceable>c</replaceable>.<replaceable>d</replaceable></arg>
256 </group>
257 <arg>ON <replaceable>servername</replaceable></arg>
258 <arg>:<replaceable>reason</replaceable></arg>
259 </cmdsynopsis>
260 <para>
261 Adds a K:line to <filename>kline.conf</filename> to ban the given user@host from using that
262 server.
263 </para>
264 <para>
265 If the optional parameter <replaceable>length</replaceable> is given, the K:line will
266 be temporary (i.e. it will not be stored on disk) and last that
267 long in minutes.
268 </para>
269 <para>
270 If an IP address is given, the ban will be against all hosts matching that IP regardless
271 of DNS. The IP address can be given as a full address (192.168.0.1), as a CIDR mask
272 (192.168.0.0/24), or as a glob (192.168.0.*).
273 </para>
274 <para>
275 All clients matching the K:line will be disconnected from the server immediately.
276 </para>
277 <para>
278 If a reason is specified, it will be sent to the client when they are disconnected, and
279 whenever a connection is attempted which is banned.
280 </para>
281 <para>
282 If the ON part is specified, the K:line is set on servers matching
283 the given mask (provided a matching shared{} block exists there).
284 Otherwise, if specified in a cluster{} block, the K:Line will be
285 propagated across the network accordingly.
286 </para>
287 </sect2>
288 <sect2>
289 <title>UNKLINE</title>
290 <cmdsynopsis>
291 <command>UNKLINE</command>
292 <arg choice=plain><replaceable>user</replaceable>@<replaceable>host</replaceable></arg>
293 <arg>ON <replaceable>servername</replaceable></arg>
294 </cmdsynopsis>
295 <para>
296 Will attempt to remove a K:line matching user@host from <filename>kline.conf</filename>, and will flush
297 a temporary K:line.
298 </para>
299 </sect2>
300 <sect2>
301 <title>XLINE</title>
302 <cmdsynopsis>
303 <command>XLINE</command>
304 <arg><replaceable>length</replaceable></arg>
305 <arg choice=plain><replaceable>mask</replaceable></arg>
306 <arg>ON <replaceable>servername</replaceable></arg>
307 <arg>:<replaceable>reason</replaceable></arg>
308 </cmdsynopsis>
309 <para>
310 Works similarly to KLINE, but matches against the real name field.
311 The wildcards are * (any sequence), ? (any character),
312 # (a digit) and @ (a letter); wildcard characters can be
313 escaped with a backslash.
314 </para>
315 <para>
316 Use \s for a space; this currently interferes with the
317 check whether the mask is already xlined and UNXLINE.
318 </para>
319 <para>
320 All clients matching the X:line will be disconnected from the server immediately.
321 </para>
322 <para>
323 The reason is never sent to users. Instead, they will be exited
324 with <quote>Bad user info</quote>.
325 </para>
326 <para>
327 If the ON part is specified, the X:line is set on servers matching
328 the given mask (provided a matching shared{} block exists there).
329 Otherwise, if specified in a cluster{} block, the X:line will be
330 propagated across the network accordingly.
331 </para>
332 </sect2>
333 <sect2>
334 <title>UNXLINE</title>
335 <cmdsynopsis>
336 <command>UNXLINE</command>
337 <arg choice=plain><replaceable>mask</replaceable></arg>
338 <arg>ON <replaceable>servername</replaceable></arg>
339 </cmdsynopsis>
340 <para>
341 Will attempt to remove an X:line from <filename>xline.conf</filename>, and will flush
342 a temporary X:line.
343 </para>
344 </sect2>
345 <sect2>
346 <title>RESV</title>
347 <cmdsynopsis>
348 <command>RESV</command>
349 <arg><replaceable>length</replaceable></arg>
350 <group>
351 <arg choice=plain><replaceable>channel</replaceable></arg>
352 <arg choice=plain><replaceable>mask</replaceable></arg>
353 </group>
354 <arg>ON <replaceable>servername</replaceable></arg>
355 <arg>:<replaceable>reason</replaceable></arg>
356 </cmdsynopsis>
357 <para>
358 If used on a channel, <quote>jupes</quote> the channel locally. Joins to the
359 channel will be disallowed and generate a server notice on +y, and
360 users will not be able to send to the channel. Channel jupes cannot
361 contain wildcards.
362 </para>
363 <para>
364 If used on a nickname mask, prevents local users from using a nick
365 matching the mask (the same wildcard characters as xlines). There
366 is no way to exempt the initial nick from this.
367 </para>
368 <para>
369 In neither case will current users of the nick or channel be
370 kicked or disconnected.
371 </para>
372 <para>
373 This facility is not designed to make certain nicks
374 or channels oper-only.
375 </para>
376 <para>
377 The reason is never sent to users.
378 </para>
379 <para>
380 If the ON part is specified, the resv is set on servers matching
381 the given mask (provided a matching shared{} block exists there).
382 Otherwise, if specified in a cluster{} block, the resv will be
383 propagated across the network accordingly.
384 </para>
385 </sect2>
386 <sect2>
387 <title>UNRESV</title>
388 <cmdsynopsis>
389 <command>UNRESV</command>
390 <group>
391 <arg choice=plain><replaceable>channel</replaceable></arg>
392 <arg choice=plain><replaceable>mask</replaceable></arg>
393 </group>
394 <arg>ON <replaceable>servername</replaceable></arg>
395 </cmdsynopsis>
396 <para>
397 Will attempt to remove a resv from <filename>resv.conf</filename>, and will flush
398 a temporary resv.
399 </para>
400 </sect2>
401 <sect2>
402 <title>DLINE</title>
403 <cmdsynopsis>
404 <command>DLINE</command>
405 <arg><replaceable>length</replaceable></arg>
406 <arg choice=plain><replaceable>a</replaceable>.<replaceable>b</replaceable>.<replaceable>c</replaceable>.<replaceable>d</replaceable></arg>
66a13527 407 <arg>ON <replaceable>servername</replaceable></arg>
212380e3 408 <arg>:<replaceable>reason</replaceable></arg>
409 </cmdsynopsis>
410 <para>
411 Adds a D:line to <filename>dline.conf</filename>, which will deny any connections
412 from the given IP address.
5366977b 413 The IP address can be given as a full address (192.168.0.1) or
414 as a CIDR mask (192.168.0.0/24).
212380e3 415 </para>
416 <para>
417 If the optional parameter <replaceable>length</replaceable> is given, the D:line will
418 be temporary (i.e. it will not be stored on disk) and last that
419 long in minutes.
420 </para>
f3d2fceb
JT
421 <para>
422 All clients matching the D:line will be disconnected from the server immediately.
423 </para>
212380e3 424 <para>
425 If a reason is specified, it will be sent to the client when they are disconnected, and,
426 if dline_reason is enabled,
427 whenever a connection is attempted which is banned.
428 </para>
429 <para>
430 D:lines are less load on a server, and may be more appropriate if somebody is flooding
431 connections.
432 </para>
433 <para>
66a13527
JT
434 If the ON part is specified, the D:line is set on servers matching
435 the given mask (provided a matching shared{} block exists there,
436 which is not the case by default).
437 Otherwise, the D:Line will be set on the local server only.
212380e3 438 </para>
439 <para>
f3d2fceb 440 Only exempt{} blocks exempt from D:lines.
212380e3 441 Being a server or having kline_exempt in auth{} does
442 <emphasis>not</emphasis> exempt (different from K/G/X:lines).
443 </para>
444 </sect2>
445 <sect2>
446 <title>UNDLINE</title>
447 <cmdsynopsis>
448 <command>UNDLINE</command>
449 <arg choice=plain><replaceable>a.b.c.d</replaceable></arg>
66a13527 450 <arg>ON <replaceable>servername</replaceable></arg>
212380e3 451 </cmdsynopsis>
452 <para>
453 Will attempt to remove a D:line from <filename>dline.conf</filename>, and will flush
454 a temporary D:line.
455 </para>
456 </sect2>
212380e3 457 <sect2>
458 <title>TESTGECOS</title>
459 <cmdsynopsis>
460 <command>TESTGECOS</command>
461 <arg choice=plain><replaceable>gecos</replaceable></arg>
462 </cmdsynopsis>
463 <para>
464 Looks up X:Lines matching the given gecos.
465 </para>
466 </sect2>
467 <sect2>
468 <title>TESTLINE</title>
469 <cmdsynopsis>
470 <command>TESTLINE</command>
471 <arg><replaceable>nick</replaceable>!</arg>
472 <group>
473 <arg choice=plain><replaceable>user</replaceable>@<replaceable>host</replaceable></arg>
474 <arg choice=plain><replaceable>a</replaceable>.<replaceable>b</replaceable>.<replaceable>c</replaceable>.<replaceable>d</replaceable></arg>
475 </group>
476 </cmdsynopsis>
477 <para>
bfb327ee 478 Looks up the given hostmask or IP address and reports back on any auth{} blocks, D: or K: lines found.
212380e3 479 If <replaceable>nick</replaceable> is given, also searches for
480 nick resvs.
481 </para>
482 <para>
483 For temporary items the number of minutes until the item expires
484 is shown (as opposed to the hit count in STATS q/Q/x/X).
485 </para>
486 <para>
487 This command will not perform DNS lookups; for best
488 results you must testline a host and its IP form.
489 </para>
490 <para>
491 The given username should begin with a tilde (~) if identd is not
492 in use. As of charybdis 2.1.1, no_tilde and username truncation will
493 be taken into account like in the normal client access check.
494 </para>
add9f99d 495 <para>
496 As of charybdis 2.2.0, a channel name can be specified and the
497 RESV will be returned, if there is one.
498 </para>
212380e3 499 </sect2>
500 <sect2>
501 <title>TESTMASK</title>
502 <cmdsynopsis>
503 <command>TESTMASK</command>
504 <arg choice=plain><replaceable>hostmask</replaceable></arg>
505 <arg><replaceable>gecos</replaceable></arg>
506 </cmdsynopsis>
507 <para>
508 Searches the network for users that match the hostmask and gecos given,
509 returning the number of matching users on this server and other servers.
510 </para>
511 <para>
512 The <replaceable>hostmask</replaceable> is of the form user@host
513 or user@ip/cidr with * and ? wildcards, optionally preceded by
514 nick!.
515 </para>
516 <para>
517 The <replaceable>gecos</replaceable> field accepts the same wildcards
518 as xlines.
519 </para>
520 <para>
521 The IP address checked against is 255.255.255.255 if the IP address
522 is unknown (remote client on a TS5 server) or 0 if the IP address
523 is hidden (auth{} spoof).
524 </para>
525 </sect2>
526 <sect2>
527 <title>LUSERS</title>
528 <cmdsynopsis>
529 <command>LUSERS</command>
530 <arg><replaceable>mask</replaceable></arg>
531 <group>
532 <arg><replaceable>nick</replaceable></arg>
533 <arg><replaceable>server</replaceable></arg>
534 </group>
535 </cmdsynopsis>
536 <para>
537 Shows various user and channel counts.
538 </para>
539 <para>
540 The <replaceable>mask</replaceable> parameter is obsolete
541 but must be used when querying a remote server.
542 </para>
543 </sect2>
544 <sect2>
545 <title>TRACE</title>
546 <cmdsynopsis>
547 <command>TRACE</command>
548 <group>
549 <arg><replaceable>server</replaceable></arg>
550 <arg><replaceable>nick</replaceable></arg>
551 </group>
552 <arg><replaceable>location</replaceable></arg>
553 </cmdsynopsis>
554 <para>
555 With no argument or one argument which is the current server,
556 TRACE gives a list of all connections to the current server
557 and a summary of connection classes.
558 </para>
559 <para>
560 With one argument which is another server, TRACE displays the path
561 to the specified server, and all servers, opers and -i users
562 on that server, along with a summary of connection classes.
563 </para>
564 <para>
565 With one argument which is a client, TRACE displays the
566 path to that client, and that client's information.
567 </para>
568 <para>
569 If location is given, the command is executed on that server;
570 no path is displayed.
571 </para>
572 <para>
573 When listing connections, type, name and class is shown
574 in addition to information depending on the type:
575 </para>
576 <variablelist>
577 <title>TRACE types</title>
578 <varlistentry>
579 <term>Try.</term>
580 <listitem><para>
581 A server we are trying to make a TCP connection to.
582 </para></listitem>
583 </varlistentry>
584 <varlistentry>
585 <term>H.S.</term>
586 <listitem><para>
587 A server we have established a TCP connection to, but is not
588 yet registered.
589 </para></listitem>
590 </varlistentry>
591 <varlistentry>
592 <term>????</term>
593 <listitem><para>
594 An incoming connection that has not yet registered as
595 a user or a server (<quote>unknown</quote>).
596 Shows the username, hostname, IP address
597 and the time the connection has been open. It is possible
598 that the ident or DNS lookups have not completed yet, and in
599 any case no tildes are shown here.
600 Unknown connections may not have a name yet.
601 </para></listitem>
602 </varlistentry>
603 <varlistentry>
604 <term>User</term>
605 <listitem><para>
606 A registered unopered user.
607 Shows the username, hostname, IP address, the time the client
608 has not sent anything (as in STATS l) and the time the user has
609 been idle (from PRIVMSG only, as in WHOIS).
610 </para></listitem>
611 </varlistentry>
612 <varlistentry>
613 <term>Oper</term>
614 <listitem><para>
615 Like User, but opered.
616 </para></listitem>
617 </varlistentry>
618 <varlistentry>
619 <term>Serv</term>
620 <listitem><para>
621 A registered server.
622 Shows the number of servers and users reached via this link,
623 who made this connection and the time the server has not sent
624 anything.
625 </para></listitem>
626 </varlistentry>
627 </variablelist>
628 </sect2>
629 <sect2>
630 <title>ETRACE</title>
631 <cmdsynopsis>
632 <command>ETRACE</command>
633 <arg><replaceable>nick</replaceable></arg>
634 </cmdsynopsis>
635 <para>
636 Shows client information about the given target, or about all local clients if
637 no target is specified.
638 </para>
639 </sect2>
e2435f22
JT
640 <sect2>
641 <title>PRIVS</title>
642 <cmdsynopsis>
643 <command>PRIVS</command>
644 <arg><replaceable>nick</replaceable></arg>
645 </cmdsynopsis>
646 <para>
647 Displays effective operator privileges for
648 the specified nick, or for yourself if no nick is
649 given. This includes all privileges from the operator
650 block, the name of the operator block and those
651 privileges from the auth block that have an effect
652 after the initial connection.
653 </para>
654 <para>
655 The exact output depends on the server the nick is on,
656 see the matching version of this document.
657 If the remote server does not support this extension, you will not
658 receive a reply.
659 </para>
660 </sect2>
212380e3 661 <sect2>
662 <title>MASKTRACE</title>
663 <cmdsynopsis>
664 <command>MASKTRACE</command>
665 <arg choice=plain><replaceable>hostmask</replaceable></arg>
666 <arg><replaceable>gecos</replaceable></arg>
667 </cmdsynopsis>
668 <para>
669 Searches the local server or network for users that match the hostmask and gecos given.
670 Network searches require the oper_spy privilege and an '!'
671 before the hostmask.
672 The matching works the same way as TESTMASK.
673 </para>
674 <para>
675 The <replaceable>hostmask</replaceable> is of the form user@host
676 or user@ip/cidr with * and ? wildcards, optionally preceded by
677 nick!.
678 </para>
679 <para>
680 The <replaceable>gecos</replaceable> field accepts the same wildcards
681 as xlines.
682 </para>
683 <para>
684 The IP address field contains 255.255.255.255 if the IP address
685 is unknown (remote client on a TS5 server) or 0 if the IP address
686 is hidden (auth{} spoof).
687 </para>
688 </sect2>
689 <sect2>
690 <title>CHANTRACE</title>
691 <cmdsynopsis>
692 <command>CHANTRACE</command>
693 <arg choice=plain><replaceable>channel</replaceable></arg>
694 </cmdsynopsis>
695 <para>
696 Displays information about users in a channel.
697 Opers with the oper_spy privilege
698 can get the information without being on the channel,
699 by prefixing the channel name with an '!'.
700 </para>
701 <para>
702 The IP address field contains 255.255.255.255 if the IP address
703 is unknown (remote client on a TS5 server) or 0 if the IP address
704 is hidden (auth{} spoof).
705 </para>
706 </sect2>
707 <sect2>
708 <title>SCAN</title>
709 <cmdsynopsis>
710 <command>SCAN UMODES</command>
711 <arg choice=plain>+<replaceable>modes</replaceable>-<replaceable>modes</replaceable></arg>
712 <arg>no-list</arg>
713 <arg>list</arg>
714 <arg>global</arg>
715 <arg>list-max <replaceable>number</replaceable></arg>
716 <arg>mask <replaceable>nick!user@host</replaceable></arg>
717 </cmdsynopsis>
718 <para>
719 Searches the local server or network for users that have the umodes given with + and do not have the umodes given with -.
720 no-list disables the listing of matching users and only shows the count.
721 list enables the listing (default).
722 global extends the search to the entire network instead of local users only.
723 list-max limits the listing of matching users to the given amount.
724 mask causes only users matching the given nick!user@host mask
725 to be selected. Only the displayed host is considered, not the
726 IP address or real host behind dynamic spoofs.
727 </para>
728 <para>
729 The IP address field contains 255.255.255.255 if the IP address
730 is unknown (remote client on a TS5 server) or 0 if the IP address
731 is hidden (auth{} spoof).
732 </para>
733 <para>
734 Network searches where a listing is given or the mask option is used
735 are operspy commands.
736 </para>
737 </sect2>
738 <sect2>
739 <title>CHGHOST</title>
740 <cmdsynopsis>
741 <command>CHGHOST</command>
742 <arg choice=plain><replaceable>nick</replaceable></arg>
743 <arg choice=plain><replaceable>value</replaceable></arg>
744 </cmdsynopsis>
745 <para>
746 Set the hostname associated with a particular nick for the duration of this session.
747 This command is disabled by default because of the abuse potential
748 and little practical use.
749 </para>
750 </sect2>
751 </sect1>
752 <sect1 id="misccommands">
753 <title>Miscellaneous commands</title>
754 <sect2>
755 <title>ADMIN</title>
756 <cmdsynopsis>
757 <command>ADMIN</command>
758 <group>
759 <arg><replaceable>nick</replaceable></arg>
760 <arg><replaceable>server</replaceable></arg>
761 </group>
762 </cmdsynopsis>
763 <para>
764 Shows the information in the admin{} block.
765 </para>
766 </sect2>
767 <sect2>
768 <title>INFO</title>
769 <cmdsynopsis>
770 <command>INFO</command>
771 <group>
772 <arg><replaceable>nick</replaceable></arg>
773 <arg><replaceable>server</replaceable></arg>
774 </group>
775 </cmdsynopsis>
776 <para>
777 Shows information about the authors of the IRC server, and
778 some information about this server instance.
779 Opers also get a list of configuration options.
780 </para>
781 </sect2>
782 <sect2>
783 <title>TIME</title>
784 <cmdsynopsis>
785 <command>TIME</command>
786 <group>
787 <arg><replaceable>nick</replaceable></arg>
788 <arg><replaceable>server</replaceable></arg>
789 </group>
790 </cmdsynopsis>
791 <para>
792 Shows the local time on the given server, in a human-readable format.
793 </para>
794 </sect2>
795 <sect2>
796 <title>VERSION</title>
797 <cmdsynopsis>
798 <command>VERSION</command>
799 <group>
800 <arg><replaceable>nick</replaceable></arg>
801 <arg><replaceable>server</replaceable></arg>
802 </group>
803 </cmdsynopsis>
804 <para>
805 Shows version information, a few compile/config options,
806 the SID and the 005 numerics.
807 The 005 numeric will be remapped to 105 for remote requests.
808 </para>
809 </sect2>
810 <sect2>
811 <title>STATS</title>
812 <cmdsynopsis>
813 <command>STATS</command>
814 <arg><replaceable>type</replaceable></arg>
815 <group>
816 <arg><replaceable>nick</replaceable></arg>
817 <arg><replaceable>server</replaceable></arg>
818 </group>
819 </cmdsynopsis>
820 <para>
821 Display various statistics and configuration information.
822 </para>
823 <variablelist>
824 <title>Values for <replaceable>type</replaceable></title>
825 <varlistentry>
826 <term>A</term>
827 <listitem>
828 <para>Show DNS servers</para>
829 </listitem>
830 </varlistentry>
831 <varlistentry>
832 <term>b</term>
833 <listitem>
834 <para>Show active nick delays</para>
835 </listitem>
836 </varlistentry>
837 <varlistentry>
838 <term>B</term>
839 <listitem>
840 <para>Show hash statistics</para>
841 </listitem>
842 </varlistentry>
843 <varlistentry>
844 <term>c</term>
845 <listitem>
846 <para>Show connect blocks</para>
847 </listitem>
848 </varlistentry>
849 <varlistentry>
850 <term>d</term>
851 <listitem>
852 <para>Show temporary D:lines</para>
853 </listitem>
854 </varlistentry>
855 <varlistentry>
856 <term>D</term>
857 <listitem>
858 <para>Show permanent D:lines</para>
859 </listitem>
860 </varlistentry>
861 <varlistentry>
862 <term>e</term>
863 <listitem>
864 <para>Show exempt blocks (exceptions to D:lines)</para>
865 </listitem>
866 </varlistentry>
867 <varlistentry>
868 <term>E</term>
869 <listitem>
870 <para>Show events</para>
871 </listitem>
872 </varlistentry>
873 <varlistentry>
874 <term>f</term>
875 <listitem>
876 <para>Show file descriptors</para>
877 </listitem>
878 </varlistentry>
212380e3 879 <varlistentry>
880 <term>h</term>
881 <listitem>
882 <para>Show hub_mask/leaf_mask</para>
883 </listitem>
884 </varlistentry>
885 <varlistentry>
886 <term>i</term>
887 <listitem>
888 <para>Show auth blocks, or matched auth blocks</para>
889 </listitem>
890 </varlistentry>
891 <varlistentry>
892 <term>k</term>
893 <listitem>
181578b2 894 <para>Show temporary K:lines, or matched K:lines</para>
212380e3 895 </listitem>
896 </varlistentry>
897 <varlistentry>
898 <term>K</term>
899 <listitem>
181578b2 900 <para>Show permanent K:lines, or matched K:lines</para>
212380e3 901 </listitem>
902 </varlistentry>
903 <varlistentry>
904 <term>l</term>
905 <listitem>
906 <para>
907 Show hostname and link information about the given nick.
908 With a server name, show information about opers and servers
7c0590f7
JT
909 on that server; opers get information about all local
910 connections if they query their own server.
911 No hostname is shown for server connections.
212380e3 912 </para>
913 </listitem>
914 </varlistentry>
915 <varlistentry>
916 <term>L</term>
917 <listitem>
918 <para>Like l, but show IP address instead of hostname</para>
919 </listitem>
920 </varlistentry>
921 <varlistentry>
922 <term>m</term>
923 <listitem>
924 <para>Show commands and their usage statistics (total counts, total bytes, counts from server connections)</para>
925 </listitem>
926 </varlistentry>
927 <varlistentry>
928 <term>n</term>
929 <listitem>
7c0590f7 930 <para>Show blacklist blocks (DNS blacklists) with hit counts since last rehash and (parenthesized) reference counts. The reference count shows how many clients are waiting on a lookup of this blacklist or have been found and are waiting on registration to complete.</para>
212380e3 931 </listitem>
932 </varlistentry>
933 <varlistentry>
934 <term>o</term>
935 <listitem>
936 <para>Show operator blocks</para>
937 </listitem>
938 </varlistentry>
939 <varlistentry>
940 <term>p</term>
941 <listitem>
942 <para>Show logged on network operators which are not set AWAY.</para>
943 </listitem>
944 </varlistentry>
945 <varlistentry>
946 <term>P</term>
947 <listitem>
7c0590f7 948 <para>Show listen blocks (ports)</para>
212380e3 949 </listitem>
950 </varlistentry>
951 <varlistentry>
952 <term>q</term>
953 <listitem>
7c0590f7 954 <para>Show temporarily resv'ed nicks and channels with hit counts</para>
212380e3 955 </listitem>
956 </varlistentry>
957 <varlistentry>
958 <term>Q</term>
959 <listitem>
7c0590f7 960 <para>Show permanently resv'ed nicks and channels with hit counts since last rehash bans</para>
212380e3 961 </listitem>
962 </varlistentry>
963 <varlistentry>
964 <term>r</term>
965 <listitem>
966 <para>Show resource usage by the ircd</para>
967 </listitem>
968 </varlistentry>
969 <varlistentry>
970 <term>t</term>
971 <listitem>
7c0590f7 972 <para>Show generic server statistics about local connections</para>
212380e3 973 </listitem>
974 </varlistentry>
975 <varlistentry>
976 <term>u</term>
977 <listitem>
978 <para>Show server uptime</para>
979 </listitem>
980 </varlistentry>
981 <varlistentry>
982 <term>U</term>
983 <listitem>
984 <para>Show shared (c), cluster (C) and service (s) blocks</para>
985 </listitem>
986 </varlistentry>
987 <varlistentry>
988 <term>v</term>
989 <listitem>
990 <para>Show connected servers and brief status</para>
991 </listitem>
992 </varlistentry>
993 <varlistentry>
994 <term>x</term>
995 <listitem>
7c0590f7 996 <para>Show temporary X:lines with hit counts</para>
212380e3 997 </listitem>
998 </varlistentry>
999 <varlistentry>
1000 <term>X</term>
1001 <listitem>
7c0590f7 1002 <para>Show permanent X:lines with hit counts since last rehash bans</para>
212380e3 1003 </listitem>
1004 </varlistentry>
1005 <varlistentry>
1006 <term>y</term>
1007 <listitem>
1008 <para>Show class blocks</para>
1009 </listitem>
1010 </varlistentry>
1011 <varlistentry>
1012 <term>z</term>
1013 <listitem>
1014 <para>Show memory usage statistics</para>
1015 </listitem>
1016 </varlistentry>
1017 <varlistentry>
1018 <term>Z</term>
1019 <listitem>
1020 <para>Show ziplinks statistics</para>
1021 </listitem>
1022 </varlistentry>
1023 <varlistentry>
1024 <term>?</term>
1025 <listitem>
7c0590f7 1026 <para>Show connected servers and link information about them</para>
212380e3 1027 </listitem>
1028 </varlistentry>
1029 </variablelist>
1030 </sect2>
1031 <sect2>
1032 <title>WALLOPS</title>
1033 <cmdsynopsis>
1034 <command>WALLOPS</command>
1035 <arg choice=plain>:<replaceable>message</replaceable></arg>
1036 </cmdsynopsis>
1037 <para>
1038 Sends a WALLOPS message to all users who have the +w umode set. This is for
1039 things you don't mind the whole network knowing about.
1040 </para>
1041 </sect2>
1042 <sect2>
1043 <title>OPERWALL</title>
1044 <cmdsynopsis>
1045 <command>OPERWALL</command>
1046 <arg choice=plain>:<replaceable>message</replaceable></arg>
1047 </cmdsynopsis>
1048 <para>
1049 Sends an OPERWALL message to all opers who have the +z umode set. +z is restricted,
1050 OPERWALL should be considered private communications.
1051 </para>
1052 </sect2>
1053 </sect1>
1054 </chapter>
1055<!-- Keep this comment at the end of the file
1056Local variables:
1057mode: sgml
1058sgml-omittag:t
1059sgml-shorttag:t
1060sgml-namecase-general:t
1061sgml-general-insert-case:lower
1062sgml-minimize-attributes:nil
1063sgml-always-quote-attributes:t
1064sgml-indent-step:2
1065sgml-indent-data:t
1066sgml-parent-document: ("charybdis-oper-guide.sgml" "book")
1067sgml-exposed-tags:nil
1068sgml-local-ecat-files:nil
1069fill-column:105
1070End:
1071-->